feat(tailscale): make tailscale togglable, defaults to enabled
This commit is contained in:
parent
ff5927e304
commit
b4694c2798
@ -1,5 +1,16 @@
|
|||||||
{
|
{
|
||||||
services.tailscale = {
|
lib,
|
||||||
enable = true;
|
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;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user