hackens-org-configurations/hackens/system.nix
2021-11-02 19:30:28 +01:00

30 lines
710 B
Nix

{ 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;
networking.firewall.enable = false;
documentation.info.enable = false;
}