Merge pull request #267037 from nbraud/nixos/sudo/assertion

nixos/sudo: Update `cfg.package` assertion
This commit is contained in:
Pierre Bourdon 2023-11-14 17:26:08 +01:00 committed by GitHub
commit 68367e66e1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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