Automatic system management

This commit is contained in:
Charlotte Van Petegem 2020-02-26 13:48:58 +01:00
parent cb3326ff6d
commit 565b416e17

View file

@ -25,7 +25,18 @@
keyMap = "us";
};
nix.trustedUsers = [ "@wheel" ];
nix = {
trustedUsers = [ "@wheel" ];
gc = {
automatic = true;
dates = "hourly";
options = "--delete-older-than 7d";
};
optimise = {
automatic = true;
dates = [ "hourly" ];
};
};
programs.gnupg.agent.enable = true;
programs.gnupg.package = pkgs.gnupg.override { guiSupport = true; };
@ -42,6 +53,12 @@
localuser = "charlotte";
};
system.autoUpgrade = {
allowReboot = false;
enable = true;
dates = "hourly";
};
users = {
mutableUsers = false;
defaultUserShell = pkgs.zsh;