mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-09-30 20:00:10 +00:00
nixos/akkoma: fix assertion
This commit is contained in:
@@ -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))
|
||||
[
|
||||
|
||||
Reference in New Issue
Block a user