From db551c05881dbe5a3b6161608b5a298f1941146b Mon Sep 17 00:00:00 2001 From: Hendrik Sokolowski Date: Mon, 16 May 2022 11:11:53 +0200 Subject: [PATCH] Enable passwordless sudo for hensoko --- users/hensoko/home.nix | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/users/hensoko/home.nix b/users/hensoko/home.nix index ab75acf4..3d14e22d 100644 --- a/users/hensoko/home.nix +++ b/users/hensoko/home.nix @@ -12,6 +12,18 @@ in pub-solar.graphical.autologin.enable = false; + security.sudo.extraRules = [ + { + users = [ "${psCfg.user.name}" ]; + commands = [ + { + command = "ALL"; + options = [ "NOPASSWD" ]; + } + ]; + } + ]; + home-manager = pkgs.lib.setAttrByPath [ "users" psCfg.user.name ] { xdg.configFile = mkIf psCfg.sway.enable { "sway/config.d/10-input-language.conf".source = ./.config/sway/config.d/input-language.conf;