zenix: nix store to separate drive
This commit is contained in:
parent
0587909a68
commit
1a1d9f43f0
2 changed files with 7 additions and 3 deletions
|
|
@ -32,8 +32,6 @@
|
||||||
zenix = mkConf {
|
zenix = mkConf {
|
||||||
nixos-modules = [
|
nixos-modules = [
|
||||||
./hardware/zenix.nix
|
./hardware/zenix.nix
|
||||||
# (auto-login "Hyprland")
|
|
||||||
# ./nixos/programs/hyprland.nix
|
|
||||||
./nixos/programs/cosmic.nix
|
./nixos/programs/cosmic.nix
|
||||||
./nixos/programs/gamer.nix
|
./nixos/programs/gamer.nix
|
||||||
./nixos/programs/personal.nix
|
./nixos/programs/personal.nix
|
||||||
|
|
@ -43,7 +41,6 @@
|
||||||
./home/programs/graphical.nix
|
./home/programs/graphical.nix
|
||||||
./home/programs/gamer.nix
|
./home/programs/gamer.nix
|
||||||
./home/programs/personal/.
|
./home/programs/personal/.
|
||||||
./home/programs/xr.nix
|
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -25,6 +25,13 @@ in {
|
||||||
options = ["subvol=@" "compress=zstd" "autodefrag"];
|
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 {
|
boot.initrd.postDeviceCommands = pkgs.lib.mkBefore (decrypt {
|
||||||
keydevice = "/dev/disk/by-id/usb-Generic_Flash_Disk_BCC97785-0:0";
|
keydevice = "/dev/disk/by-id/usb-Generic_Flash_Disk_BCC97785-0:0";
|
||||||
keypartname = "usbkey";
|
keypartname = "usbkey";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue