diff --git a/modules/baseline.nix b/modules/baseline.nix index 18ad926..1263b7d 100644 --- a/modules/baseline.nix +++ b/modules/baseline.nix @@ -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" ]; diff --git a/modules/flakes.nix b/modules/flakes.nix index d75431d..e8c3388 100644 --- a/modules/flakes.nix +++ b/modules/flakes.nix @@ -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}" diff --git a/modules/profiles.nix b/modules/profiles.nix index 60f9fb9..a1ef320 100644 --- a/modules/profiles.nix +++ b/modules/profiles.nix @@ -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";