17 lines
265 B
Nix
17 lines
265 B
Nix
{
|
|
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;
|
|
}
|