1
0
Fork 0

Enabling garbage collection and Nix Store Optimazation

This commit is contained in:
phartman 2025-01-17 00:11:13 -06:00
parent be363965cf
commit 4d1e79ac39
2 changed files with 17 additions and 3 deletions

View file

@ -335,9 +335,15 @@ fileSystems."/mnt/nas/tvshows" = {
# Enable Automatic Upgrades
system.autoUpgrade.enable = true;
nix.gc.automatic = true;
nix.gc.dates = "weekly"; # Run garbage collection weekly to free up disk space
# Garbage Collection and Store Optimization
nix.settings.auto-optimise-store = true;
nix.gc = {
automatic = true;
interval = { Weekday = 0; Hour = 0; Minute = 0; };
options = "--delete-older-than 30d";
};
# This value determines the NixOS release from which the default
# settings for stateful data, like file locations and database versions
# on your system were taken. Its perfectly fine and recommended to leave

View file

@ -505,6 +505,14 @@ fileSystems."/mnt/nas/tvshows" = {
persistent = true;
};
# Garbage Collection and Store Optimization
nix.settings.auto-optimise-store = true;
nix.gc = {
automatic = true;
interval = { Weekday = 0; Hour = 0; Minute = 0; };
options = "--delete-older-than 30d";
};
# This value determines the NixOS release from which the default
# settings for stateful data, like file locations and database versions
# on your system were taken. Its perfectly fine and recommended to leave