(feat): disk size optimisation

This commit is contained in:
Harry 2024-08-16 15:33:48 +02:00
parent 2e11f7b24c
commit 35684609f3

View file

@ -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.