more tidying in hosts/hades

This commit is contained in:
serenity-F 2024-12-12 02:54:56 +10:00
parent f57c3d9f93
commit 3a442ee18d
2 changed files with 29 additions and 2 deletions

View file

@ -153,7 +153,7 @@
musnix.nixosModules.musnix musnix.nixosModules.musnix
disko.nixosModules.disko disko.nixosModules.disko
sops-nix.nixosModules.sops sops-nix.nixosModules.sops
./hosts/hades/configuration.nix ./hosts/hades/default.nix
]; ];
}; };

View file

@ -4,6 +4,7 @@
imports = [ imports = [
## Host specific config files ## Host specific config files
./hardware-configuration.nix
./modules ./modules
## Shared 'core' config options ## Shared 'core' config options
@ -11,6 +12,32 @@
]; ];
## ## ## ## ##
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! ## ooh, hostname - this one's important!
networking.hostName = "hades"; networking.hostName = "hades";