diff --git a/hosts/sisko/configuration.nix b/hosts/sisko/configuration.nix new file mode 100644 index 0000000..42e1532 --- /dev/null +++ b/hosts/sisko/configuration.nix @@ -0,0 +1,29 @@ +{ config, pkgs, lib, ... }: + +{ + imports = + [ + ../../base.nix + ../../common/metrics-exporters.nix + ./hardware-configuration.nix + ./desktop.nix + ]; + + networking = { + hostName = "sisko"; + defaultGateway = "192.168.10.1"; + interfaces.ens18.ipv4 = { + addresses = [ + { address = "192.168.10.172"; prefixLength = 24; } + ]; + }; + hostId = "b716d781"; + }; + + sops.defaultSopsFile = ../../secrets/sisko/sisko.yaml; + + environment.variables = { EDITOR = "vim"; }; + + system.stateVersion = "24.11"; +} + diff --git a/hosts/sisko/desktop.nix b/hosts/sisko/desktop.nix new file mode 100644 index 0000000..e4e5184 --- /dev/null +++ b/hosts/sisko/desktop.nix @@ -0,0 +1,58 @@ +{ config, pkgs, lib, ... }: +{ + # Video + hardware.graphics = { + enable = true; + enable32Bit = true; + }; + # services.displayManager.ly.enable = true; + programs.hyprland = { + enable = true; + withUWSM = true; + xwayland.enable = true; + }; + + # Audio + services.pipewire = { + enable = true; + alsa.enable = true; + pulse.enable = true; + jack.enable = true; + }; + hardware.pulseaudio.enable = false; + + # Misc + fonts = { + fontDir.enable = true; + packages = with pkgs; [ + noto-fonts + noto-fonts-emoji + noto-fonts-cjk-sans + font-awesome + fira-code + hack-font + (nerdfonts.override { + fonts = [ + "Hack" + ]; + }) + ]; + }; + + environment.sessionVariables = { + NIXOS_OZONE_WL = "1"; + SSH_AUTH_SOCK = "/run/user/${toString config.users.users.felixalb.uid}/keyring/ssh"; + }; + + services.gnome.gnome-keyring.enable = true; + + home-manager.users.felixalb = { + services = { + dunst.enable = true; + }; + }; + + environment.systemPackages = with pkgs; [ + kitty + ]; +} diff --git a/hosts/sisko/home.nix b/hosts/sisko/home.nix new file mode 100644 index 0000000..97fe61f --- /dev/null +++ b/hosts/sisko/home.nix @@ -0,0 +1,13 @@ +{ pkgs, lib, ... }: +{ + imports = [ + ./../../home/base.nix + ./../../home/alacritty.nix + ]; + + programs = { + zsh.shellAliases."rebuild" = "sudo nixos-rebuild switch --flake /config"; + }; + + home.stateVersion = "24.11"; +}