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,8 +335,14 @@ fileSystems."/mnt/nas/tvshows" = {
# Enable Automatic Upgrades # Enable Automatic Upgrades
system.autoUpgrade.enable = true; 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 # This value determines the NixOS release from which the default
# settings for stateful data, like file locations and database versions # settings for stateful data, like file locations and database versions

View file

@ -505,6 +505,14 @@ fileSystems."/mnt/nas/tvshows" = {
persistent = true; 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 # This value determines the NixOS release from which the default
# settings for stateful data, like file locations and database versions # settings for stateful data, like file locations and database versions
# on your system were taken. Its perfectly fine and recommended to leave # on your system were taken. Its perfectly fine and recommended to leave