mirror of
https://github.com/harryssecret/homelab-nix.git
synced 2025-01-18 21:29:33 +01:00
(feat): disk size optimisation
This commit is contained in:
parent
2e11f7b24c
commit
35684609f3
|
@ -99,6 +99,15 @@
|
||||||
8080
|
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
|
# Copy the NixOS configuration file and link it from the resulting system
|
||||||
# (/run/current-system/configuration.nix). This is useful in case you
|
# (/run/current-system/configuration.nix). This is useful in case you
|
||||||
# accidentally delete configuration.nix.
|
# accidentally delete configuration.nix.
|
||||||
|
|
Loading…
Reference in a new issue