diff --git a/flake.nix b/flake.nix index 1d5f9fb..267032d 100755 --- a/flake.nix +++ b/flake.nix @@ -153,7 +153,7 @@ musnix.nixosModules.musnix disko.nixosModules.disko sops-nix.nixosModules.sops - ./hosts/hades/configuration.nix + ./hosts/hades/default.nix ]; }; diff --git a/hosts/hades/default.nix b/hosts/hades/default.nix index ea45030..7755464 100755 --- a/hosts/hades/default.nix +++ b/hosts/hades/default.nix @@ -4,13 +4,40 @@ imports = [ ## Host specific config files - ./modules + ./hardware-configuration.nix + ./modules ## Shared 'core' config options ../../core/config.nix ]; + ## ## ## ## ## + + boot = { + + kernelPackages = pkgs.linuxPackages_latest; + + supportedFilesystems = [ "vfat" "ext4" ]; + + loader.grub = { + enable = true; + device = "/dev/nvme0n1"; + enableCryptodisk = true; + }; + + initrd.luks.devices = { + root = { + # Use https://nixos.wiki/wiki/Full_Disk_Encryption + device = "/dev/disk/by-uuid/5526aab7-b779-4fc8-95bd-9452bc3a9232"; + preLVM = true; + }; + }; + + }; + + ## ## ## ## ## + ## ooh, hostname - this one's important! networking.hostName = "hades";