aboutsummaryrefslogtreecommitdiff
path: root/modules/doas.nix
diff options
context:
space:
mode:
authorRosa <rosaontheweb@proton.me>2026-06-02 12:55:13 -0400
committerRosa <rosaontheweb@proton.me>2026-06-02 12:55:13 -0400
commitc137036e26bc15a1683eda089e8a9a67649d9c24 (patch)
tree12909c2f0d32760668684202f9f3efc57f854fac /modules/doas.nix
parentc4657d671b01789b096cb2f6d0db89804ad3c637 (diff)
rename keybind in kakoune
Diffstat (limited to 'modules/doas.nix')
-rw-r--r--modules/doas.nix13
1 files changed, 12 insertions, 1 deletions
diff --git a/modules/doas.nix b/modules/doas.nix
index d68bf6b..16a6dc6 100644
--- a/modules/doas.nix
+++ b/modules/doas.nix
@@ -2,11 +2,22 @@
config,
lib,
options,
+ pkgs,
...
}:
{
security = {
- doas.extraRules = [ { groups = [ "wheel" ]; } ];
+ doas.extraRules = [
+ {
+ groups = [ "wheel" ];
+ }
+ {
+ cmd = "mount";
+ groups = [ "wheel" ];
+ noPass = true;
+ }
+ ];
+
sudo.enable = lib.mkDefault (!config.security.doas.enable);
};
}