diff --git a/options/custom/services/default.nix b/options/custom/services/default.nix index 9bbff78..90162b5 100644 --- a/options/custom/services/default.nix +++ b/options/custom/services/default.nix @@ -47,6 +47,7 @@ with lib; { swaync.enable = true; swayosd.enable = true; #// xembed-sni-proxy.enable = true; + zerotierone.enable = true; }) ]; } diff --git a/options/custom/services/zerotierone.nix b/options/custom/services/zerotierone.nix new file mode 100644 index 0000000..fe4a0d9 --- /dev/null +++ b/options/custom/services/zerotierone.nix @@ -0,0 +1,19 @@ +{ + config, + lib, + ... +}: +with lib; let + cfg = config.custom.services.zerotierone; +in { + options.custom.services.zerotierone.enable = mkOption {default = false;}; + + config = mkIf cfg.enable { + #!! Configuration is imperative + # https://www.zerotier.com/ + # https://github.com/zerotier/ZeroTierOne + services.zerotierone = { + enable = true; + }; + }; +}