add tailscale

This commit is contained in:
uku 2024-01-10 17:48:50 +01:00
parent dca4396e25
commit bef8a2abde
Signed by: uku
GPG key ID: 7D01D7B105E77166
5 changed files with 48 additions and 24 deletions

View file

@ -1,6 +1,7 @@
{
lib,
pkgs,
config,
nixpkgs,
...
}: {
@ -16,6 +17,10 @@
};
};
age.secrets = {
tailscaleKey.file = ../secrets/tailscaleKey.age;
};
programs = {
ssh.startAgent = true;
@ -33,6 +38,13 @@
enable = true;
openFirewall = lib.mkDefault false;
};
tailscale = {
enable = true;
useRoutingFeatures = "both";
extraUpFlags = ["--ssh"];
authKeyFile = config.age.secrets.tailscaleKey.path;
};
};
nixpkgs.config.allowUnfree = true;