Enabling garbage collection and Nix Store Optimazation
This commit is contained in:
parent
be363965cf
commit
4d1e79ac39
2 changed files with 17 additions and 3 deletions
|
@ -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
|
||||||
|
|
|
@ -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. It‘s perfectly fine and recommended to leave
|
# on your system were taken. It‘s perfectly fine and recommended to leave
|
||||||
|
|
Loading…
Reference in a new issue