Store the code folder in /large/persist
diff --git a/modules/users.nix b/modules/users.nix
index 59355c0..5944248 100644
--- a/modules/users.nix
+++ b/modules/users.nix
@@ -8,7 +8,7 @@
users.users.${username} = {
isNormalUser = true;
- extraGroups = [ "wheel" "kvm" "docker" "containerd" "dialout" "libvirtd" "video" "tty" config.users.groups.keys.name ];
+ extraGroups = [ "netdev" "wheel" "kvm" "docker" "containerd" "dialout" "libvirtd" "video" "tty" config.users.groups.keys.name ];
shell = pkgs.zsh;
passwordFile = config.sops.secrets.password.path;
};
@@ -17,7 +17,8 @@
# Important for physlock + sleep
};
- environment.persistence."/nix/persist".users.${username}.directories = [ "Code" "Documents" "Pictures" ];
+ environment.persistence."/nix/persist".users.${username}.directories = [ "Documents" "Pictures" ];
+ environment.persistence."/large/persist".users.${username}.directories = [ "Code" ];
sops.secrets.password = {
mode = "0400";
neededForUsers = true;