nixos/sudo: Update assertion message

This commit is contained in:
nicoo 2023-11-12 11:08:26 +00:00
parent 6ed37e8e04
commit d5a8e667d2

View File

@ -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