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 /nixos/modules/security | |
parent | 6ed37e8e041cf94df958a42912a89f55e1b78446 (diff) |
nixos/sudo: Update assertion message
Diffstat (limited to 'nixos/modules/security')
-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 ff912dec5073f..3dd5d2e525d91 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 |