about summary refs log tree commit diff
path: root/modules/common/security.nix
diff options
context:
space:
mode:
authorazahi <azat@bahawi.net>2025-03-12 20:17:13 +0300
committerazahi <azat@bahawi.net>2025-03-12 20:17:13 +0300
commitc81dc5a13b469c511fac6fa2390b70422d1b4da5 (patch)
tree4dab5909006ab5c25da6bd9fde6a714c7719ded7 /modules/common/security.nix
parent2025-02-17 (diff)
2025-03-12 HEAD master
Diffstat (limited to 'modules/common/security.nix')
-rw-r--r--modules/common/security.nix21
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;
-        });
-      '';
-    };
-  };
-}

Consider giving Nix/NixOS a try! <3