From 1dbd2b876c7d3992464314d2f771a11af79a3cc4 Mon Sep 17 00:00:00 2001 From: Myned Date: Sat, 28 Sep 2024 13:06:11 -0500 Subject: [PATCH] zerotierone: initial service Signed-off-by: Myned --- options/custom/services/default.nix | 1 + options/custom/services/zerotierone.nix | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 options/custom/services/zerotierone.nix 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; + }; + }; +}