fix tailscale auth
This commit is contained in:
parent
4c609647b8
commit
d40ca09a49
2 changed files with 5 additions and 5 deletions
|
@ -105,12 +105,12 @@ in
|
|||
# HOME SERVERS
|
||||
"h001" = {
|
||||
identityFile = age.secrets.nix2h001.path;
|
||||
user = "root";
|
||||
user = "luser";
|
||||
};
|
||||
"h001_" = {
|
||||
identityFile = age.secrets.nix2h001.path;
|
||||
hostname = "10.12.14.2";
|
||||
user = "root";
|
||||
user = "luser";
|
||||
};
|
||||
"h002" = {
|
||||
identityFile = age.secrets.nix2h002.path;
|
||||
|
|
|
@ -36,9 +36,9 @@ in
|
|||
enable = true;
|
||||
openFirewall = true;
|
||||
useRoutingFeatures = "client";
|
||||
# authKeyFile = lib.mkIf (
|
||||
# config ? age && config.age ? secrets && config.age.secrets ? headscale_auth
|
||||
# ) config.age.secrets.headscale_auth.path;
|
||||
authKeyFile = lib.mkIf (
|
||||
config ? age && config.age ? secrets && config.age.secrets ? headscale_auth
|
||||
) config.age.secrets.headscale_auth.path;
|
||||
# https://tailscale.com/kb/1241/tailscale-up
|
||||
extraUpFlags =
|
||||
(lib.optionals cfg.useHeadscale [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue