From c81dc5a13b469c511fac6fa2390b70422d1b4da5 Mon Sep 17 00:00:00 2001 From: azahi Date: Wed, 12 Mar 2025 20:17:13 +0300 Subject: 2025-03-12 --- modules/common/security.nix | 21 --------------------- 1 file changed, 21 deletions(-) delete mode 100644 modules/common/security.nix (limited to 'modules/common/security.nix') 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; - }); - ''; - }; - }; -} -- cgit 1.4.1