ops/nixos: enable HTTP gateway if Tailscale is configured

This commit is contained in:
Luke Granger-Brown 2022-01-01 12:40:13 +00:00
parent 1f13fd811d
commit c5119b4882

View file

@ -251,5 +251,10 @@ in
};
services.fwupd.enable = true;
services.journald.enableHttpGateway = config.my.ip.tailscale != null;
systemd.sockets.systemd-journal-gatewayd.socketConfig = lib.optionalAttrs (config.my.ip.tailscale != null) {
ListenStream = [ "" "${config.my.ip.tailscale}:19531" "127.0.0.1:19531" "[::1]:19531" ];
FreeBind = true;
};
};
}