mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 23:43:30 +00:00
Merge pull request #267037 from nbraud/nixos/sudo/assertion
nixos/sudo: Update `cfg.package` assertion
This commit is contained in:
commit
68367e66e1
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user