From 7b4e6c0e1b8160823331edc2257a8626f123af3d Mon Sep 17 00:00:00 2001 From: Luke Granger-Brown Date: Sat, 1 Jan 2022 15:14:02 +0000 Subject: [PATCH] ops/nixos: oops, try to fix my.scrapeJournal.addr --- ops/nixos/lib/common.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 = {