diff options
author | Christoph Cullmann <christoph@cullmann.io> | 2024-08-19 23:11:31 +0200 |
---|---|---|
committer | Christoph Cullmann <christoph@cullmann.io> | 2024-08-19 23:11:31 +0200 |
commit | 5be28dcbd386db3fcc22e205e9687e008951ab45 (patch) | |
tree | 3bf3ee2eae83553c4e4e158039f04f6471929200 /neko/hardware-configuration.nix | |
parent | 595b46ce969350d8a51ffc18f66dd67d10105016 (diff) |
use luks + btrfs raid
Diffstat (limited to 'neko/hardware-configuration.nix')
-rw-r--r-- | neko/hardware-configuration.nix | 24 |
1 files changed, 11 insertions, 13 deletions
diff --git a/neko/hardware-configuration.nix b/neko/hardware-configuration.nix index bc4e040..60f0994 100644 --- a/neko/hardware-configuration.nix +++ b/neko/hardware-configuration.nix @@ -10,25 +10,23 @@ boot.initrd.kernelModules = [ "i915" ]; boot.kernelModules = [ "kvm-intel" ]; - # efi partition + # /boot efi partition to boot in UEFI mode fileSystems."/boot" = { device = "/dev/disk/by-id/nvme-Seagate_FireCuda_530_ZP4000GM30013_7VS01VBM-part1"; fsType = "vfat"; + options = [ "fmask=0022" "dmask=0022" ]; neededForBoot = true; }; - # vms - fileSystems."/home/cullmann/vms" = - { device = "vpool/vms"; - fsType = "zfs"; - depends = [ "/home" ]; - }; - - # projects - fileSystems."/home/cullmann/projects" = - { device = "ppool/projects"; - fsType = "zfs"; - depends = [ "/home" ]; + # /nix encrypted btrfs for the remaining space + boot.initrd.luks.devices."crypt0".device = "/dev/disk/by-id/nvme-Seagate_FireCuda_530_ZP4000GM30013_7VS01VBM-part2"; + boot.initrd.luks.devices."crypt1".device = "/dev/disk/by-id/nvme-CT2000P5PSSD8_213330E4ED05"; + boot.initrd.luks.devices."crypt2".device = "/dev/disk/by-id/nvme-Samsung_SSD_980_PRO_2TB_S69ENF0R846614L"; + fileSystems."/nix" = + { device = "/dev/mapper/crypt0"; + fsType = "btrfs"; + options = [ "device=/dev/mapper/crypt1" "device=/dev/mapper/crypt2" ]; + neededForBoot = true; }; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; |