init(clanServices): add zerotier boilerplate to clanServices

This commit is contained in:
Johannes Kirschbauer
2025-04-16 11:34:58 +02:00
parent 3f33cb7dee
commit 101648d657
3 changed files with 22 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
{ self, lib, ... }:
{
clan.inventory.modules = {
zerotier-redux = lib.modules.importApply ./zerotier-redux/default.nix {
inherit (self) packages;
};
};
}

View File

@@ -0,0 +1,13 @@
{ packages }:
{ ... }:
{
_class = "clan.service";
manifest.name = "clan-core/zerotier";
# TODO: Migrate the behavior from nixosModules/clanCore/zerotier
# Expose a flag, to disable the clanCore/zerotier module if this module is used
# To ensure conflict free behavior
roles.moon = { };
roles.peer = { };
roles.controller = { };
}

View File

@@ -63,6 +63,7 @@
filter pathExists [ filter pathExists [
./checks/flake-module.nix ./checks/flake-module.nix
./clanModules/flake-module.nix ./clanModules/flake-module.nix
./clanServices/flake-module.nix
./devShell.nix ./devShell.nix
./docs/nix/flake-module.nix ./docs/nix/flake-module.nix
./flakeModules/flake-module.nix ./flakeModules/flake-module.nix