From bf2f2d548583c9af9c4c0f5fab5709a299f7c512 Mon Sep 17 00:00:00 2001 From: Myned Date: Tue, 10 Sep 2024 21:27:00 -0500 Subject: [PATCH] netbird: initial disabled service Signed-off-by: Myned --- options/custom/services/default.nix | 1 + options/custom/services/netbird.nix | 17 +++++++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 options/custom/services/netbird.nix diff --git a/options/custom/services/default.nix b/options/custom/services/default.nix index 90de35d..448311c 100644 --- a/options/custom/services/default.nix +++ b/options/custom/services/default.nix @@ -6,6 +6,7 @@ with lib; config.custom.services = mkMerge [ (mkIf config.custom.default { #// agenix.enable = true; + #// netbird.enable = true; tailscale.enable = true; }) diff --git a/options/custom/services/netbird.nix b/options/custom/services/netbird.nix new file mode 100644 index 0000000..810ecf8 --- /dev/null +++ b/options/custom/services/netbird.nix @@ -0,0 +1,17 @@ +{ config, lib, ... }: + +with lib; + +let + cfg = config.custom.services.netbird; +in +{ + options.custom.services.netbird.enable = mkOption { default = false; }; + + config = mkIf cfg.enable { + # https://github.com/netbirdio/netbird + services.netbird = { + enable = true; + }; + }; +}