diff options
| author | Fuwn <[email protected]> | 2024-09-21 21:28:10 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2024-09-21 21:28:10 -0700 |
| commit | 87e4d259afacb1aba5241a4df24aa6b5b7e4cc8d (patch) | |
| tree | f4562bcc41cabc86af4fbd3afdf6afde1311d380 /modules/server/systemd.nix | |
| parent | himeji: add uptime-kuma container (diff) | |
| download | nixos-config-87e4d259afacb1aba5241a4df24aa6b5b7e4cc8d.tar.xz nixos-config-87e4d259afacb1aba5241a4df24aa6b5b7e4cc8d.zip | |
homeji: move tailscale key to sops
Diffstat (limited to 'modules/server/systemd.nix')
| -rw-r--r-- | modules/server/systemd.nix | 4 |
1 files changed, 2 insertions, 2 deletions
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"; }; }; |