summary refs log tree commit diff
path: root/modules/go2rtc.nix
diff options
context:
space:
mode:
authorMel <mel@rnrd.eu>2025-04-18 23:43:53 +0200
committerMel <mel@rnrd.eu>2025-04-19 00:37:00 +0200
commitb0865ada5b4dffa0471f046cf8420ed34c587131 (patch)
tree5e09badb69d5d0730f1f06d42262d6fa1dab0174 /modules/go2rtc.nix
parent7dd632f91e85ac168f99e2aae804599972402e3a (diff)
downloadnetwork-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/go2rtc.nix')
-rw-r--r--modules/go2rtc.nix6
1 files changed, 1 insertions, 5 deletions
diff --git a/modules/go2rtc.nix b/modules/go2rtc.nix
index e1fb881..488d679 100644
--- a/modules/go2rtc.nix
+++ b/modules/go2rtc.nix
@@ -34,9 +34,5 @@ in
     };
   };
 
-  # todo: put this into foundation option.
-  systemd.services.go2rtc = {
-    after = [ "tailscaled.service" ];
-    requires = [ "tailscaled.service" ];
-  };
+  foundation.tailnetServices = [ "go2rtc" ];
 }