diff --git a/configuration.nix b/configuration.nix index 44cb5c7..9c9ee1c 100644 --- a/configuration.nix +++ b/configuration.nix @@ -99,6 +99,15 @@ 8080 ]; + # reducing disk usage + boot.loader.systemd-boot.configurationLimit = 10; + nix.gc = { + automatic = true; + dates = "weekly"; + options = "--delete-older-than 1w"; + }; + nix.settings.auto-optimise-store = true; + # Copy the NixOS configuration file and link it from the resulting system # (/run/current-system/configuration.nix). This is useful in case you # accidentally delete configuration.nix.