From 87e4d259afacb1aba5241a4df24aa6b5b7e4cc8d Mon Sep 17 00:00:00 2001 From: Fuwn Date: Sat, 21 Sep 2024 21:28:10 -0700 Subject: homeji: move tailscale key to sops --- modules/server/systemd.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/server/systemd.nix') diff --git a/modules/server/systemd.nix b/modules/server/systemd.nix index 3ad7f06..1ffc1ce 100644 --- a/modules/server/systemd.nix +++ b/modules/server/systemd.nix @@ -1,4 +1,4 @@ -{ secrets, ... }: +{ config, ... }: { systemd.services.tailscale-up = { after = [ "tailscaled.service" ]; @@ -6,7 +6,7 @@ wantedBy = [ "multi-user.target" ]; serviceConfig = { - ExecStart = "/run/current-system/sw/bin/tailscale up --authkey ${secrets.tailscale_authentication_key}"; + ExecStart = "/run/current-system/sw/bin/tailscale up --authkey ${config.sops.secrets.tailscale_authentication_key.path}"; Restart = "on-failure"; }; }; -- cgit v1.2.3