fix tailscale auth

This commit is contained in:
RingOfStorms (Joshua Bell) 2025-04-29 14:49:33 -05:00
parent 4c609647b8
commit d40ca09a49
2 changed files with 5 additions and 5 deletions

View file

@ -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;

View file

@ -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 [