automatic gc every day at midnight
This commit is contained in:
+11
-10
@@ -130,10 +130,20 @@
|
|||||||
zfs rollback -r zroot/root@blank
|
zfs rollback -r zroot/root@blank
|
||||||
'';
|
'';
|
||||||
|
|
||||||
nix.settings.experimental-features = [
|
nix = {
|
||||||
|
settings.experimental-features = [
|
||||||
"nix-command"
|
"nix-command"
|
||||||
"flakes"
|
"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
|
||||||
|
|||||||
Reference in New Issue
Block a user