Merge pull request #265712 from nbraud/nixos/sudo-rs/akkoma

This commit is contained in:
Maciej Krüger 2023-11-11 18:10:25 +01:00 committed by GitHub
commit e9a5bf8ae4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -909,7 +909,7 @@ in {
};
config = mkIf cfg.enable {
warnings = optionals (!config.security.sudo.enable) [''
warnings = optionals (with config.security; (!sudo.enable) && (!sudo-rs.enable)) [''
The pleroma_ctl wrapper enabled by the installWrapper option relies on
sudo, which appears to have been disabled through security.sudo.enable.
''];