remove old upgrade configs

This commit is contained in:
Sean Buckley 2021-04-12 22:34:54 -04:00
parent 6a9858992d
commit aa42c4a2f9
3 changed files with 0 additions and 19 deletions

View file

@ -45,18 +45,6 @@
];
};
security.sudo.extraRules = [{
groups = [ "wheel" ];
commands = [
{ options = [ "NOPASSWD" ]; command = "/run/current-system/sw/bin/nix-collect-garbage -d"; }
{ options = [ "NOPASSWD" ]; command = "/run/current-system/sw/bin/nix-channel --update"; }
{ options = [ "NOPASSWD" ]; command = "/run/current-system/sw/bin/nixos-rebuild switch"; }
{ options = [ "NOPASSWD" ]; command = "/run/current-system/sw/bin/nixos-rebuild switch --upgrade"; }
{ options = [ "NOPASSWD" ]; command = "/run/current-system/sw/bin/nixos-rebuild boot"; }
{ options = [ "NOPASSWD" ]; command = "/run/current-system/sw/bin/nixos-rebuild boot --upgrade"; }
];
}];
users.users.sean = {
isNormalUser = true;
extraGroups = [ "wheel" "audio" "video" "networkmanager" "dialout" "input" "wireshark" ];

View file

@ -20,9 +20,6 @@ in
experimental-features = nix-command flakes
'';
system.autoUpgrade.flake = cfg.rebuildPath;
system.autoUpgrade.flags = [ upgradeArg ];
environment.systemPackages = map
(x: (pkgs.writeShellScriptBin
"sc-${builtins.head x}"

View file

@ -12,10 +12,6 @@ in
(mkIf (cfg == "server") {
services.openssh.enable = true;
system.autoUpgrade = {
enable = true;
allowReboot = true;
};
nix.gc = {
automatic = true;
options = "--delete-older-than 30d";