From 532ba62c26e7f1d85bac9fd507574e438be519e4 Mon Sep 17 00:00:00 2001 From: Benedikt Hiemer Date: Sat, 1 Nov 2025 11:41:41 +0100 Subject: [PATCH] nixos/journald-gateway: remove assertion making system and user args truly optional --- .../modules/system/boot/systemd/journald-gateway.nix | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/nixos/modules/system/boot/systemd/journald-gateway.nix b/nixos/modules/system/boot/systemd/journald-gateway.nix index f0d80077e6d6..952177f85805 100644 --- a/nixos/modules/system/boot/systemd/journald-gateway.nix +++ b/nixos/modules/system/boot/systemd/journald-gateway.nix @@ -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"