add auto gc and optimization of /nix/store

This commit is contained in:
MediocreDev
2024-03-15 17:18:54 +00:00
parent 76c9498774
commit b0fa307398
+10
View File
@@ -78,6 +78,16 @@
# ]; # ];
# }; # };
nix.settings.trusted-users = [ "root" "@wheel" ]; nix.settings.trusted-users = [ "root" "@wheel" ];
nix.gc = {
automatic = true;
dates = "weekly";
options = "--delete-older-than 30d";
};
nix.optimise = {
automatic = true;
dates = [ "00:00" ];
};
users.users.liamm = { users.users.liamm = {
isNormalUser = true; isNormalUser = true;
description = "liamm"; description = "liamm";