ops/nixos: enable HTTP gateway if Tailscale is configured
This commit is contained in:
parent
1f13fd811d
commit
c5119b4882
1 changed files with 5 additions and 0 deletions
|
@ -251,5 +251,10 @@ in
|
||||||
};
|
};
|
||||||
|
|
||||||
services.fwupd.enable = true;
|
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;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue