diff options
| author | Mel <mel@rnrd.eu> | 2025-04-18 23:43:53 +0200 |
|---|---|---|
| committer | Mel <mel@rnrd.eu> | 2025-04-19 00:37:00 +0200 |
| commit | b0865ada5b4dffa0471f046cf8420ed34c587131 (patch) | |
| tree | 5e09badb69d5d0730f1f06d42262d6fa1dab0174 /modules/foundation/www | |
| parent | 7dd632f91e85ac168f99e2aae804599972402e3a (diff) | |
| download | network-b0865ada5b4dffa0471f046cf8420ed34c587131.tar.zst network-b0865ada5b4dffa0471f046cf8420ed34c587131.zip | |
Service target to delay service start until tailnet is ready
Signed-off-by: Mel <mel@rnrd.eu>
Diffstat (limited to 'modules/foundation/www')
| -rw-r--r-- | modules/foundation/www/tailnet.nix | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/modules/foundation/www/tailnet.nix b/modules/foundation/www/tailnet.nix index ff2410c..b361fef 100644 --- a/modules/foundation/www/tailnet.nix +++ b/modules/foundation/www/tailnet.nix @@ -78,13 +78,14 @@ in config = lib.mkIf (cfg.enable && cfg.tailnet) { + foundation.tailnetServices = [ + "nginx" + "acme-${me.tailscale.domain}" + ]; + # overwrite default acme behaviour with tailscale systemd.services."acme-${me.tailscale.domain}" = { - after = [ "tailscaled.service" ]; - requires = [ "tailscaled.service" ]; - serviceConfig = { - ExecStart = lib.mkForce "+${tailscaleRenewScript}"; - }; + serviceConfig.ExecStart = lib.mkForce "+${tailscaleRenewScript}"; }; # tailnet internal vhost |
