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
disko.nixosModules.disko
sops-nix.nixosModules.sops
./hosts/hades/configuration.nix
./hosts/hades/default.nix
];
};

View file

@ -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";