diff options
author | nicoo <nicoo@mur.at> | 2023-11-12 11:08:26 +0000 |
---|---|---|
committer | nicoo <nicoo@mur.at> | 2023-11-14 12:25:55 +0000 |
commit | d5a8e667d265dc8ab11cea25fe7ee26b9b396536 (patch) | |
tree | 5d6f6735fe7ca71571b44e4aa68d6f6ea255df66 | |
parent | 6ed37e8e041cf94df958a42912a89f55e1b78446 (diff) | |
download | nixpkgs-d5a8e667d265dc8ab11cea25fe7ee26b9b396536.tar nixpkgs-d5a8e667d265dc8ab11cea25fe7ee26b9b396536.tar.gz nixpkgs-d5a8e667d265dc8ab11cea25fe7ee26b9b396536.tar.bz2 nixpkgs-d5a8e667d265dc8ab11cea25fe7ee26b9b396536.tar.lz nixpkgs-d5a8e667d265dc8ab11cea25fe7ee26b9b396536.tar.xz nixpkgs-d5a8e667d265dc8ab11cea25fe7ee26b9b396536.tar.zst nixpkgs-d5a8e667d265dc8ab11cea25fe7ee26b9b396536.zip |
nixos/sudo: Update assertion message
-rw-r--r-- | nixos/modules/security/sudo.nix | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/nixos/modules/security/sudo.nix b/nixos/modules/security/sudo.nix index ff912dec507..3dd5d2e525d 100644 --- a/nixos/modules/security/sudo.nix +++ b/nixos/modules/security/sudo.nix @@ -192,10 +192,12 @@ in ###### implementation config = mkIf cfg.enable { - assertions = [ - { assertion = cfg.package.pname != "sudo-rs"; - message = "The NixOS `sudo` module does not work with `sudo-rs` yet."; } - ]; + assertions = [ { + assertion = cfg.package.pname != "sudo-rs"; + message = '' + NixOS' `sudo` module does not support `sudo-rs`; see `security.sudo-rs` instead. + ''; + } ]; security.sudo.extraRules = let |