diff options
author | azahi <azat@bahawi.net> | 2025-03-12 20:17:13 +0300 |
---|---|---|
committer | azahi <azat@bahawi.net> | 2025-03-12 20:17:13 +0300 |
commit | c81dc5a13b469c511fac6fa2390b70422d1b4da5 (patch) | |
tree | 4dab5909006ab5c25da6bd9fde6a714c7719ded7 /modules/common/security.nix | |
parent | 2025-02-17 (diff) |
Diffstat (limited to 'modules/common/security.nix')
-rw-r--r-- | modules/common/security.nix | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/modules/common/security.nix b/modules/common/security.nix deleted file mode 100644 index acfc9cc..0000000 --- a/modules/common/security.nix +++ /dev/null @@ -1,21 +0,0 @@ -_: { - security = { - sudo.wheelNeedsPassword = false; - - polkit = { - enable = true; - extraConfig = '' - /* - * Allow members of the wheel group to execute any actions - * without password authentication, similar to "sudo NOPASSWD:". - * - * https://wiki.archlinux.org/title/Polkit#Bypass_password_prompt - */ - polkit.addRule(function(action, subject) { - if (subject.isInGroup('wheel')) - return polkit.Result.YES; - }); - ''; - }; - }; -} |