feat: add tailscale module

This commit is contained in:
2026-04-09 16:17:19 +02:00
parent 677728c440
commit 79eb5c27e9
2 changed files with 24 additions and 2 deletions

View File

@@ -31,19 +31,20 @@ in
../../modules/firewall
../../modules/fonts
../../modules/gaming
../../modules/networking
../../modules/hcloud
../../modules/keyboard
../../modules/localization
../../modules/networking
../../modules/nvidia
(import ../../modules/secrets { inherit lib inputs config; })
../../modules/ssh
../../modules/storage
../../modules/stylix
../../modules/syncthing
../../modules/tailscale
../../modules/users
../../modules/wol
../../modules/yubikey
../../modules/hcloud
];
home-manager.users.${config.host.username} = import ../../home/hosts/andromache {
@@ -62,7 +63,11 @@ in
inherit (config.host) username;
nixSigningKey.enable = true;
};
tailscale.enable = true;
docker.user = config.host.username;
hcloud = {
enable = true;
inherit (config.host) username;

View File

@@ -0,0 +1,17 @@
{
lib,
config,
...
}:
{
options.tailscale = {
enable = lib.mkEnableOption "tailscale";
};
config = lib.mkIf config.tailscale.enable {
services.tailscale = {
enable = true;
openFirewall = true;
};
};
}