nixos/journald-gateway: remove assertion making system and user args truly optional (#328645)

This commit is contained in:
Florian Klink
2025-11-01 15:21:46 +00:00
committed by GitHub
@@ -108,18 +108,6 @@ in
};
config = lib.mkIf cfg.enable {
assertions = [
{
# This prevents the weird case were disabling "system" and "user"
# actually enables both because the cli flags are not present.
assertion = cfg.system || cfg.user;
message = ''
systemd-journal-gatewayd cannot serve neither "system" nor "user"
journals.
'';
}
];
systemd.additionalUpstreamSystemUnits = [
"systemd-journal-gatewayd.socket"
"systemd-journal-gatewayd.service"