summary refs log tree commit diff
path: root/nixos/modules
diff options
context:
space:
mode:
authorJoachim F <joachifm@users.noreply.github.com>2018-07-02 23:55:56 +0000
committerGitHub <noreply@github.com>2018-07-02 23:55:56 +0000
commit3ea5b15c20df1279d224e6ddab48f84fa6b9ebde (patch)
treea920e5db8eaa292e9c657f11bb705ea5ef401d04 /nixos/modules
parent338c4939185a0efe8376e59430b306a1de9e17e2 (diff)
parentd08967a3a84281270180027b96e5d91924f4bec1 (diff)
downloadnixpkgs-3ea5b15c20df1279d224e6ddab48f84fa6b9ebde.tar
nixpkgs-3ea5b15c20df1279d224e6ddab48f84fa6b9ebde.tar.gz
nixpkgs-3ea5b15c20df1279d224e6ddab48f84fa6b9ebde.tar.bz2
nixpkgs-3ea5b15c20df1279d224e6ddab48f84fa6b9ebde.tar.lz
nixpkgs-3ea5b15c20df1279d224e6ddab48f84fa6b9ebde.tar.xz
nixpkgs-3ea5b15c20df1279d224e6ddab48f84fa6b9ebde.tar.zst
nixpkgs-3ea5b15c20df1279d224e6ddab48f84fa6b9ebde.zip
Merge pull request #42845 from ivanbrennan/nixos-sudo-describe-rules-precedence
nixos/security.sudo: Document ordering of extraRules
Diffstat (limited to 'nixos/modules')
-rw-r--r--nixos/modules/security/sudo.nix3
1 files changed, 3 insertions, 0 deletions
diff --git a/nixos/modules/security/sudo.nix b/nixos/modules/security/sudo.nix
index 24283e1d616..361a7e86960 100644
--- a/nixos/modules/security/sudo.nix
+++ b/nixos/modules/security/sudo.nix
@@ -66,6 +66,9 @@ in
     security.sudo.extraRules = mkOption {
       description = ''
         Define specific rules to be in the <filename>sudoers</filename> file.
+        More specific rules should come after more general ones in order to
+        yield the expected behavior. You can use mkBefore/mkAfter to ensure
+        this is the case when configuration options are merged.
       '';
       default = [];
       example = [