diff --git a/nixos/hosts/shadowfax/default.nix b/nixos/hosts/shadowfax/default.nix index 6e8b709..77a1d7a 100644 --- a/nixos/hosts/shadowfax/default.nix +++ b/nixos/hosts/shadowfax/default.nix @@ -4,11 +4,10 @@ inputs, pkgs, ... -}: -let - sanoidConfig = import ./config/sanoid.nix { }; +}: let + sanoidConfig = import ./config/sanoid.nix {}; disks = import ./config/disks.nix; - smartdDevices = map (device: { inherit device; }) disks; + smartdDevices = map (device: {inherit device;}) disks; pushoverNotify = pkgs.writeShellApplication { name = "pushover-notify"; @@ -18,7 +17,7 @@ let jq ]; - excludeShellChecks = [ "SC2154" ]; + excludeShellChecks = ["SC2154"]; text = '' ${builtins.readFile ./scripts/pushover-notify.sh} @@ -32,29 +31,28 @@ let jq ]; - excludeShellChecks = [ "SC2154" ]; + excludeShellChecks = ["SC2154"]; text = '' ${builtins.readFile ./scripts/refresh-series.sh} ''; }; -in -{ +in { imports = [ inputs.disko.nixosModules.disko (import ../../profiles/disko-nixos.nix { - disks = [ "/dev/sda|/dev/disk/by-id/nvme-Samsung_SSD_970_EVO_Plus_500GB_S58SNM0W406409E" ]; + disks = ["/dev/sda|/dev/disk/by-id/nvme-Samsung_SSD_970_EVO_Plus_500GB_S58SNM0W406409E"]; }) inputs.nix-minecraft.nixosModules.minecraft-servers ]; boot = { initrd = { - kernelModules = [ "nfs" ]; - supportedFilesystems = [ "nfs" ]; + kernelModules = ["nfs"]; + supportedFilesystems = ["nfs"]; }; - binfmt.emulatedSystems = [ "aarch64-linux" ]; # Enabled for arm compilation + binfmt.emulatedSystems = ["aarch64-linux"]; # Enabled for arm compilation kernelModules = [ "vfio" @@ -62,11 +60,11 @@ in "vfio_pci" "vfio_virqfd" ]; - extraModulePackages = [ ]; - kernelParams = [ "zfs.zfs_arc_max=107374182400" ]; # 100GB + extraModulePackages = []; + kernelParams = ["zfs.zfs_arc_max=107374182400"]; # 100GB }; - swapDevices = [ ]; + swapDevices = []; hardware = { cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; @@ -76,7 +74,7 @@ in nvidia-container-toolkit.enable = true; }; - users.users.root.openssh.authorizedKeys.keys = [ ]; + users.users.root.openssh.authorizedKeys.keys = []; # Network settings networking = { hostName = "shadowfax"; @@ -169,7 +167,7 @@ in # Minio minio = { enable = true; - dataDir = [ "/eru/minio" ]; + dataDir = ["/eru/minio"]; rootCredentialsFile = config.sops.secrets."minio".path; }; @@ -196,7 +194,7 @@ in # Soft Serve - SSH git server soft-serve = { enable = true; - settings = import ./config/soft-serve.nix { }; + settings = import ./config/soft-serve.nix {}; }; sunshine = { @@ -216,21 +214,21 @@ in # VSCode Compatibility Settings vscode-server.enable = true; - xserver.videoDrivers = [ "nvidia" ]; + xserver.videoDrivers = ["nvidia"]; greetd = { enable = true; vt = 3; settings = { default_session = { user = "jahanson"; - command = "${pkgs.greetd.tuigreet}/bin/tuigreet --time --cmd Hyprland"; # start Hyprland with a TUI login manager + command = "${pkgs.greetd.tuigreet}/bin/tuigreet --time --cmd='uwsm start select'"; # start Hyprland with a TUI login manager }; }; }; }; # sops - sops = import ./config/sops-secrets.nix { }; + sops = import ./config/sops-secrets.nix {}; # System settings and services. mySystem = { @@ -410,7 +408,7 @@ in # qBittorrent qbittorrent = { enable = true; - package = pkgs.unstable.qbittorrent.override { guiSupport = false; }; + package = pkgs.unstable.qbittorrent.override {guiSupport = false;}; user = "qbittorrent"; group = "kah"; dataDir = "/nahar/qbittorrent"; @@ -434,9 +432,9 @@ in system = { incus = { enable = true; - preseed = import ./config/incus-preseed.nix { }; + preseed = import ./config/incus-preseed.nix {}; }; - motd.networkInterfaces = [ "bond0" ]; + motd.networkInterfaces = ["bond0"]; nfs.enable = true; zfs.enable = true; zfs.mountPoolsAtBoot = [