From 3aeda379d55dcbb8e6e319250ba856be1841c1a8 Mon Sep 17 00:00:00 2001 From: stitchy Date: Thu, 12 Sep 2024 06:15:18 +0000 Subject: [PATCH] Move Nix Store --- hosts/lappy/hardware-configuration.nix | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/hosts/lappy/hardware-configuration.nix b/hosts/lappy/hardware-configuration.nix index ea2f74b..e377b09 100644 --- a/hosts/lappy/hardware-configuration.nix +++ b/hosts/lappy/hardware-configuration.nix @@ -10,17 +10,23 @@ boot.kernelModules = [ "kvm-intel" ]; boot.extraModulePackages = [ ]; - fileSystems."/" = - { device = "/dev/disk/by-uuid/d626409d-8166-45c2-a168-09dfab31b8a4"; + fileSystems = { + "/" = { + device = "/dev/disk/by-uuid/d626409d-8166-45c2-a168-09dfab31b8a4"; fsType = "btrfs"; - options = [ "subvol=@nix-root" ]; + options = [ "compress=zstd" "subvol=@nix-root" ]; }; - - fileSystems."/home" = - { device = "/dev/disk/by-uuid/d626409d-8166-45c2-a168-09dfab31b8a4"; + "/home" = { + device = "/dev/disk/by-uuid/d626409d-8166-45c2-a168-09dfab31b8a4"; fsType = "btrfs"; - options = [ "subvol=@home" ]; + options = [ "compress=zstd" "subvol=@home" ]; }; + "/nix" = { + device = "/dev/disk/by-uuid/d626409d-8166-45c2-a168-09dfab31b8a4"; + fsType = "btrfs"; + options = [ "compress=zstd" "subvol=@nix-store" "noatime"]; + }; + }; boot.initrd.luks.devices."luksdev".device = "/dev/disk/by-uuid/100a5596-671b-48ba-a1d1-0723559baf87";