2021-11-02 19:30:28 +01:00
|
|
|
{ pkgs, ... }: {
|
|
|
|
# Upgrades
|
|
|
|
system.autoUpgrade = {
|
|
|
|
enable = true;
|
|
|
|
allowReboot = false;
|
|
|
|
};
|
|
|
|
|
|
|
|
# Auto-GC and store optimizations
|
|
|
|
nix = {
|
|
|
|
trustedUsers = [ "root" "hackens" ];
|
|
|
|
package = pkgs.nixUnstable;
|
|
|
|
gc = {
|
|
|
|
automatic = true;
|
|
|
|
dates = "weekly";
|
|
|
|
options = "--delete-older-than 60d";
|
|
|
|
};
|
|
|
|
optimise.automatic = true;
|
|
|
|
extraOptions = ''
|
|
|
|
experimental-features = nix-command flakes
|
|
|
|
# Thank you
|
|
|
|
min-free = ${toString (100 * 1024 * 1024)}
|
|
|
|
max-free = ${toString (1024 * 1024 * 1024)}
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
|
|
|
services.locate.enable = true;
|
|
|
|
services.openssh.enable = true;
|
2022-07-30 08:44:32 +02:00
|
|
|
services.openssh.passwordAuthentication = false;
|
2021-11-02 19:30:28 +01:00
|
|
|
networking.firewall.enable = false;
|
|
|
|
documentation.info.enable = false;
|
|
|
|
}
|