From 06ed68e4e5bb330cf70d43508717c15d0fe69705 Mon Sep 17 00:00:00 2001 From: Tomas Rivera Date: Fri, 15 May 2026 15:30:18 +0200 Subject: [PATCH] snapshot pre-autoupdate-2026-05-15T13-30-18Z --- hosts/laptop/configuration.nix | 14 ++++++++++++++ hostsModules/laptop/scripts/autoUpdate.nix | 1 - 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/hosts/laptop/configuration.nix b/hosts/laptop/configuration.nix index 268a7c9..0992291 100755 --- a/hosts/laptop/configuration.nix +++ b/hosts/laptop/configuration.nix @@ -162,6 +162,20 @@ shell = pkgs.zsh; }; + # removes need for password for nixos-rebuild + security.sudo.extraRules = [ + { + users = [ "tomasr" ]; + commands = [ + { + command = "/run/current-system/sw/bin/nixos-rebuild"; + options = [ "NOPASSWD" ]; + } + ]; + } + ]; + + #adds nixos experimental features: nix.settings.experimental-features = ["nix-command" "flakes"]; diff --git a/hostsModules/laptop/scripts/autoUpdate.nix b/hostsModules/laptop/scripts/autoUpdate.nix index 5d0b792..b1eabf9 100644 --- a/hostsModules/laptop/scripts/autoUpdate.nix +++ b/hostsModules/laptop/scripts/autoUpdate.nix @@ -10,7 +10,6 @@ pkgs.writeShellApplication { nixos-rebuild matrix-commander-rs libnotify - sudo ]; text = ''