feat(tailscale): make tailscale togglable, defaults to enabled

This commit is contained in:
Lucien Cartier-Tilet 2025-09-03 11:45:12 +02:00
parent ff5927e304
commit b4694c2798

View File

@ -1,5 +1,16 @@
{
services.tailscale = {
enable = true;
lib,
config,
...
}:
with lib; let
cfg = config.mySystem.network.tailscale;
in {
options.mySystem.network.tailscale = {
enable = mkOption {
type = types.bool;
default = true;
};
};
config.services.tailscale.enable = cfg.enable;
}