nixos/sudo: Only wrap sudoedit when using Miller's sudo

This commit is contained in:
nicoo 2023-09-07 21:50:28 +00:00
parent 914bf58369
commit f66eb0df3b

View file

@ -264,7 +264,8 @@ in
source = "${cfg.package.out}/bin/sudo";
inherit owner group setuid permissions;
};
sudoedit = {
# sudo-rs does not yet ship a sudoedit (as of v0.2.0)
sudoedit = mkIf usingMillersSudo {
source = "${cfg.package.out}/bin/sudoedit";
inherit owner group setuid permissions;
};