Skip to content

Commit 663702c

Browse files
committed
relocate tailscale auth file
1 parent 96c8a1f commit 663702c

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

modules/network/tailscale.nix

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,14 @@
1-
{ ... }:
1+
{ config, ... }:
22

33
{
44

55
services.tailscale = {
66
enable = true;
77
extraUpFlags = [ "--ssh" ];
8-
authKeyFile = "/var/.tailscale/auth";
8+
authKeyFile = config.sops.secrets."tailscale/auth_key".path;
99
};
1010

1111
sops.secrets = {
12-
"tailscale/auth_key" = {
13-
path = "/var/.tailscale/auth";
14-
};
12+
"tailscale/auth_key" = { };
1513
};
1614
}

0 commit comments

Comments
 (0)