prepare for zfs
This commit is contained in:
parent
3ed8d71a5f
commit
d5e6a93db3
10 changed files with 75 additions and 119 deletions
|
@ -18,24 +18,6 @@
|
|||
neededForBoot = true;
|
||||
};
|
||||
|
||||
# /nix encrypted btrfs for the remaining space
|
||||
boot.initrd.luks.devices."crypt0" = {
|
||||
device = "/dev/disk/by-id/nvme-CT4000P3PSSD8_2325E6E63746-part2";
|
||||
allowDiscards = true;
|
||||
bypassWorkqueues = true;
|
||||
};
|
||||
boot.initrd.luks.devices."crypt1" = {
|
||||
device = "/dev/disk/by-id/ata-CT2000MX500SSD1_2138E5D5061F";
|
||||
allowDiscards = true;
|
||||
bypassWorkqueues = true;
|
||||
};
|
||||
fileSystems."/nix" =
|
||||
{ device = "/dev/mapper/crypt0";
|
||||
fsType = "btrfs";
|
||||
options = [ "device=/dev/mapper/crypt1" ];
|
||||
neededForBoot = true;
|
||||
};
|
||||
|
||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue