From aa42c4a2f9eb4ca00fb987215200f6c5d63ae221 Mon Sep 17 00:00:00 2001 From: Sean Buckley Date: Mon, 12 Apr 2021 22:34:54 -0400 Subject: [PATCH] remove old upgrade configs --- modules/baseline.nix | 12 ------------ modules/flakes.nix | 3 --- modules/profiles.nix | 4 ---- 3 files changed, 19 deletions(-) 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";