diff --git a/ops/nixos/lib/common.nix b/ops/nixos/lib/common.nix index 5cf81f3dee..597078b502 100644 --- a/ops/nixos/lib/common.nix +++ b/ops/nixos/lib/common.nix @@ -62,7 +62,7 @@ in }; options.my.scrapeJournal.addr = lib.mkOption { type = lib.types.nullOr lib.types.str; - default = "${config.my.ip.tailscale}:19531"; + default = if config.my.ip.tailscale == null then null else "${config.my.ip.tailscale}:19531"; }; config = {