automatic gc every day at midnight

This commit is contained in:
2026-05-11 22:42:19 -05:00
parent 5bbab48bb5
commit e743f4424d
+11 -10
View File
@@ -130,10 +130,20 @@
zfs rollback -r zroot/root@blank
'';
nix.settings.experimental-features = [
nix = {
settings.experimental-features = [
"nix-command"
"flakes"
];
gc = {
automatic = true;
persistent = true;
dates = [ "daily" ];
options = "--delete-older-than 7d";
};
};
nixpkgs.config.allowUnfree = true;
# Declare system wide pkgs
@@ -188,18 +198,9 @@
];
};
services.postgresql = {
enable = true;
identMap = ''
postgres roy postgres
'';
};
# Open ports in the firewall.
# networking.firewall.allowedTCPPorts = [ ... ];
# networking.firewall.allowedUDPPorts = [ ... ];
# Or disable the firewall altogether.
networking.firewall.enable = true;
# INITIAL system version