automatic gc every day at midnight

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