mirror of
https://github.com/buckley310/nixos-config.git
synced 2024-12-21 19:24:15 +00:00
remove old upgrade configs
This commit is contained in:
parent
6a9858992d
commit
aa42c4a2f9
3 changed files with 0 additions and 19 deletions
|
@ -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 = {
|
users.users.sean = {
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
extraGroups = [ "wheel" "audio" "video" "networkmanager" "dialout" "input" "wireshark" ];
|
extraGroups = [ "wheel" "audio" "video" "networkmanager" "dialout" "input" "wireshark" ];
|
||||||
|
|
|
@ -20,9 +20,6 @@ in
|
||||||
experimental-features = nix-command flakes
|
experimental-features = nix-command flakes
|
||||||
'';
|
'';
|
||||||
|
|
||||||
system.autoUpgrade.flake = cfg.rebuildPath;
|
|
||||||
system.autoUpgrade.flags = [ upgradeArg ];
|
|
||||||
|
|
||||||
environment.systemPackages = map
|
environment.systemPackages = map
|
||||||
(x: (pkgs.writeShellScriptBin
|
(x: (pkgs.writeShellScriptBin
|
||||||
"sc-${builtins.head x}"
|
"sc-${builtins.head x}"
|
||||||
|
|
|
@ -12,10 +12,6 @@ in
|
||||||
|
|
||||||
(mkIf (cfg == "server") {
|
(mkIf (cfg == "server") {
|
||||||
services.openssh.enable = true;
|
services.openssh.enable = true;
|
||||||
system.autoUpgrade = {
|
|
||||||
enable = true;
|
|
||||||
allowReboot = true;
|
|
||||||
};
|
|
||||||
nix.gc = {
|
nix.gc = {
|
||||||
automatic = true;
|
automatic = true;
|
||||||
options = "--delete-older-than 30d";
|
options = "--delete-older-than 30d";
|
||||||
|
|
Loading…
Reference in a new issue