use again bcachefs, but with multiple disks

This commit is contained in:
Christoph Cullmann 2024-08-18 18:53:31 +02:00
parent c67ff4d387
commit 584c54f8f9
No known key found for this signature in database
6 changed files with 72 additions and 172 deletions

View file

@ -10,18 +10,18 @@
boot.initrd.kernelModules = [ "amdgpu" ];
boot.kernelModules = [ "kvm-amd" ];
# efi partition
# /boot efi partition to boot in UEFI mode
fileSystems."/boot" =
{ device = "/dev/disk/by-id/nvme-CT4000P3PSSD8_2325E6E63746-part1";
fsType = "vfat";
neededForBoot = true;
};
# vms
fileSystems."/home/cullmann/vms" =
{ device = "vpool/vms";
fsType = "zfs";
depends = [ "/home" ];
# /nix encrypted bcachefs for the remaining space
fileSystems."/nix" =
{ device = "/dev/disk/by-id/nvme-CT4000P3PSSD8_2325E6E63746-part2:/dev/disk/by-id/ata-CT2000MX500SSD1_2138E5D5061F";
fsType = "bcachefs";
neededForBoot = true;
};
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";