From 1a1d9f43f0e35b1829a086872851fb9029effe59 Mon Sep 17 00:00:00 2001 From: tristan Date: Thu, 26 Sep 2024 18:43:51 +0100 Subject: [PATCH] zenix: nix store to separate drive --- flake.nix | 3 --- hardware/zenix.nix | 7 +++++++ 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/flake.nix b/flake.nix index 8fae4e1..918ca2d 100644 --- a/flake.nix +++ b/flake.nix @@ -32,8 +32,6 @@ zenix = mkConf { nixos-modules = [ ./hardware/zenix.nix - # (auto-login "Hyprland") - # ./nixos/programs/hyprland.nix ./nixos/programs/cosmic.nix ./nixos/programs/gamer.nix ./nixos/programs/personal.nix @@ -43,7 +41,6 @@ ./home/programs/graphical.nix ./home/programs/gamer.nix ./home/programs/personal/. - ./home/programs/xr.nix ]; }; diff --git a/hardware/zenix.nix b/hardware/zenix.nix index 8702d8b..8e7dde2 100644 --- a/hardware/zenix.nix +++ b/hardware/zenix.nix @@ -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";