mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 22:11:33 +01:00
Fix tailscale serve in nspawn containers
This commit is contained in:
parent
5ce0d85d6e
commit
946ef625fc
3 changed files with 3 additions and 4 deletions
|
|
@ -42,7 +42,7 @@ in
|
|||
|
||||
systemd.services.tailscaled-set.after = [ "tailscaled-autoconnect.service" ];
|
||||
|
||||
systemd.services.tailscale-serve = lib.mkIf (cfg.serve != null) {
|
||||
systemd.services.tailscaled-serve = lib.mkIf (cfg.serve != null) {
|
||||
after = [
|
||||
"tailscaled.service"
|
||||
"tailscaled-autoconnect.service"
|
||||
|
|
@ -51,7 +51,7 @@ in
|
|||
wantedBy = [ "multi-user.target" ];
|
||||
serviceConfig.Type = "oneshot";
|
||||
script = ''
|
||||
${lib.getExe pkgs.tailscale} cert ${config.networking.fqdn}
|
||||
${lib.getExe pkgs.tailscale} cert ${cfg.subdomain}.${config.networking.domain}
|
||||
${lib.getExe pkgs.tailscale} serve reset
|
||||
${lib.getExe pkgs.tailscale} serve --bg ${cfg.serve}
|
||||
'';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue