Merge pull request 'Cleanup Automation' (#8) from auto-cleanup into master

Reviewed-on: #8
This commit was merged in pull request #8.
This commit is contained in:
Wesley Irvin
2023-06-30 16:52:14 +00:00

View File

@@ -104,6 +104,17 @@
''; '';
}; };
# Enable automatic optimization of the nix store
nix.settings.auto-optimise-store = true;
# Enable automatic garbage collection on anything
# stale and older than 2 weeks
nix.gc = {
automatic = true;
dates = "weekly";
options = "--delete-older-than 14d";
};
# Setup our ZSH shell. # Setup our ZSH shell.
# First let's absolutely make sure the shell is enabled # First let's absolutely make sure the shell is enabled
programs.zsh.enable = true; programs.zsh.enable = true;