zenix: nix store to separate drive
This commit is contained in:
parent
0587909a68
commit
1a1d9f43f0
2 changed files with 7 additions and 3 deletions
|
|
@ -25,6 +25,13 @@ in {
|
|||
options = ["subvol=@" "compress=zstd" "autodefrag"];
|
||||
};
|
||||
|
||||
fileSystems."/nix" = {
|
||||
device = "/dev/disk/by-label/nix";
|
||||
fsType = "f2fs";
|
||||
neededForBoot = true;
|
||||
options = [ "noatime" ];
|
||||
};
|
||||
|
||||
boot.initrd.postDeviceCommands = pkgs.lib.mkBefore (decrypt {
|
||||
keydevice = "/dev/disk/by-id/usb-Generic_Flash_Disk_BCC97785-0:0";
|
||||
keypartname = "usbkey";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue