nixos/akkoma: fix assertion

This commit is contained in:
cyclopentane
2026-06-20 23:00:44 +02:00
parent c9d6f532c7
commit 690af69257

View File

@@ -1167,17 +1167,16 @@ in
};
config = mkIf cfg.enable {
assertions =
optionals
(
assertions = [
{
assertion =
cfg.config.":pleroma".":media_proxy".enabled
&& cfg.config.":pleroma".":media_proxy".base_url == null
)
[
''
`services.akkoma.config.":pleroma".":media_proxy".base_url` must be set when the media proxy is enabled.
''
];
-> cfg.config.":pleroma".":media_proxy".base_url != null;
message = ''
`services.akkoma.config.":pleroma".":media_proxy".base_url` must be set when the media proxy is enabled.
'';
}
];
warnings =
optionals (with config.security; cfg.installWrapper && (!sudo.enable) && (!sudo-rs.enable))
[