feat: enable tailscale

Signed-off-by: Lander Van den Bulcke <landervandenbulcke@gmail.com>
This commit is contained in:
Lander Van den Bulcke 2025-07-02 22:44:45 +02:00
parent 887f26dbbd
commit 77d8363b68
Signed by: lander
GPG key ID: 0142722B4B0C536F
3 changed files with 77 additions and 1 deletions

View file

@ -1,4 +1,9 @@
{ inputs, pkgs, ... }:
{
config,
inputs,
pkgs,
...
}:
{
imports = [
inputs.disko.nixosModules.disko
@ -25,6 +30,21 @@
];
};
sops.secrets.tailscale-authkey = {
owner = "root";
group = "root";
sopsFile = ./secrets.yaml;
};
services.tailscale = {
enable = true;
openFirewall = true;
extraUpFlags = [
"--login-server=https://headscale.escapeangle.com"
];
authKeyFile = config.sops.secrets.tailscale-authkey.path;
};
nix = {
settings = {
trusted-users = [ "lander" ];