1
0
mirror of https://github.com/kmein/niveum synced 2026-03-16 10:11:08 +01:00

feat(nix): auto gc for saving space

This commit is contained in:
2022-12-03 11:34:33 +01:00
parent e6623e8b4d
commit bb8940c9e5

View File

@@ -8,4 +8,9 @@
nix.gc.automatic = true;
nix.optimise.automatic = true;
services.journald.extraConfig = "SystemMaxUse=500M";
# https://webzine.snowflake.ovh/issue-001.html -- garbage collect when less then 1 GB is available, make 3 GB fee
nix.extraOptions = ''
min-free = 1073741824
max-free = 3221225472
'';
}