Files
nix-config/system/network/tailscale.nix

24 lines
366 B
Nix
Raw Normal View History

2025-09-01 14:53:46 +02:00
{
lib,
config,
...
}:
with lib; let
cfg = config.mySystem.network.tailscale;
in {
options.mySystem.network.tailscale = {
enable = mkOption {
type = types.bool;
default = true;
};
2025-09-01 14:53:46 +02:00
};
2025-12-07 15:02:21 +01:00
config.services.tailscale = {
enable = cfg.enable;
extraSetFlags = [
"--accept-dns"
"--accept-routes"
"--ssh"
];
};
2025-09-01 14:53:46 +02:00
}