nixos/sudo: Guard against security.sudo.package = pkgs.sudo-rs;
This is not unlikely to happen, given the enthusiasm shown by some users, but we are not there yet, and this will save them from breaking their system.
This commit is contained in:
parent
a6616e7d71
commit
10b6e8ba21
|
@ -192,6 +192,10 @@ in
|
||||||
###### implementation
|
###### implementation
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
|
assertions = [
|
||||||
|
{ assertion = cfg.package.pname != "sudo-rs";
|
||||||
|
message = "The NixOS `sudo` module does not work with `sudo-rs` yet."; }
|
||||||
|
];
|
||||||
|
|
||||||
# We `mkOrder 600` so that the default rule shows up first, but there is
|
# We `mkOrder 600` so that the default rule shows up first, but there is
|
||||||
# still enough room for a user to `mkBefore` it.
|
# still enough room for a user to `mkBefore` it.
|
||||||
|
|
Loading…
Reference in a new issue