infrastructure/machines/public-cof/system.nix

24 lines
540 B
Nix
Raw Normal View History

2021-11-13 00:59:59 +01:00
{ pkgs, ... }:
{
# # Auto upgrades
# system.autoUpgrade = {
# enable = false; # TODO(Ryan): do not enable, it will break deployments.
# allowReboot = false;
# };
# Auto GC and store optimizations
nix = {
2023-02-24 00:59:59 +01:00
settings.trusted-users = [ "root" ];
2021-11-13 00:59:59 +01:00
gc = {
automatic = true;
dates = "weekly";
options = "--delete-older-than 90d";
};
optimise.automatic = true;
extraOptions = ''
min-free = ${toString (100 * 1024 * 1024)}
max-free = ${toString (1024 * 1024 * 1024)}
'';
};
}