diff --git a/common/_home_manager/mods/ssh.nix b/common/_home_manager/mods/ssh.nix index 44b6921..7b0631b 100644 --- a/common/_home_manager/mods/ssh.nix +++ b/common/_home_manager/mods/ssh.nix @@ -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; diff --git a/common/programs/tailnet.nix b/common/programs/tailnet.nix index 733d3a4..1fd0934 100644 --- a/common/programs/tailnet.nix +++ b/common/programs/tailnet.nix @@ -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 [