feat: Enable tailscale on physical servers

fix: Fix Nix flake checks
This commit is contained in:
Pim Kunis 2024-07-22 22:54:08 +02:00
parent c22d356191
commit 15e0dce041
5 changed files with 21 additions and 4 deletions

View file

@ -6,5 +6,6 @@
./data-sharing.nix
./monitoring
./k3s
./tailscale.nix
];
}

View file

@ -61,6 +61,7 @@ in
nfs-utils # Required for Longhorn
];
# TODO!!!!!
networking = {
nftables.enable = lib.mkForce false;
firewall.enable = lib.mkForce false;

View file

@ -0,0 +1,14 @@
{ config, ... }: {
config = {
services.tailscale = {
enable = true;
authKeyFile = config.sops.secrets."tailscale/authKey".path;
extraUpFlags = [
"--hostname=${config.networking.hostName}"
];
};
sops.secrets."tailscale/authKey" = { };
};
}