2021-07-26 01:29:05 +02:00
|
|
|
{ pkgs, ... }:
|
|
|
|
{
|
|
|
|
# Auto upgrades
|
|
|
|
system.autoUpgrade = {
|
2021-07-27 14:37:31 +02:00
|
|
|
enable = false; # TODO(Ryan): do not enable, it will break deployments.
|
2021-07-26 01:29:05 +02:00
|
|
|
allowReboot = false;
|
|
|
|
};
|
|
|
|
|
|
|
|
# Auto GC and store optimizations
|
|
|
|
nix = {
|
|
|
|
trustedUsers = [ "root" "gab" ];
|
|
|
|
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)}
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
|
|
|
services.locate = {
|
|
|
|
enable = true;
|
|
|
|
interval = "04:05";
|
|
|
|
};
|
|
|
|
}
|