prepare for zfs
This commit is contained in:
parent
3ed8d71a5f
commit
d5e6a93db3
10 changed files with 75 additions and 119 deletions
|
@ -11,7 +11,7 @@
|
|||
./hardware-configuration.nix
|
||||
|
||||
# Shared config of all machines
|
||||
/nix/data/nixos/share/common.nix
|
||||
/data/nixos/share/common.nix
|
||||
];
|
||||
|
||||
# our hostname and an ID for ZFS
|
||||
|
|
|
@ -18,18 +18,6 @@
|
|||
neededForBoot = true;
|
||||
};
|
||||
|
||||
# /nix encrypted btrfs for the remaining space
|
||||
boot.initrd.luks.devices."crypt0" = {
|
||||
device = "/dev/disk/by-id/nvme-SAMSUNG_MZVLB1T0HBLR-000L2_S4DZNX0R362286-part2";
|
||||
allowDiscards = true;
|
||||
bypassWorkqueues = true;
|
||||
};
|
||||
fileSystems."/nix" =
|
||||
{ device = "/dev/mapper/crypt0";
|
||||
fsType = "btrfs";
|
||||
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