From 77598282a99655e52201371b796ffb4aecfd591b Mon Sep 17 00:00:00 2001 From: Myned Date: Mon, 23 Dec 2024 13:02:31 -0500 Subject: [PATCH] sudo: explicitly enable module Signed-off-by: Myned --- options/custom/settings/security.nix | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/options/custom/settings/security.nix b/options/custom/settings/security.nix index 2721b67..da4c9ef 100644 --- a/options/custom/settings/security.nix +++ b/options/custom/settings/security.nix @@ -12,13 +12,15 @@ in { config = mkIf cfg.enable { # Bypass password prompts security = { - sudo.wheelNeedsPassword = false; + sudo = { + enable = true; + wheelNeedsPassword = false; + }; # https://wiki.nixos.org/wiki/Sway#Using_Home_Manager + # https://wiki.archlinux.org/title/Polkit#Bypass_password_prompt polkit = { enable = true; - - # https://wiki.archlinux.org/title/Polkit#Bypass_password_prompt extraConfig = '' polkit.addRule(function(action, subject) { if (subject.isInGroup("wheel")) { return polkit.Result.YES; }