Merge pull request 'init(clanServices): create a new folder for migrated modules (clanServices); add a module as example' (#3334) from hsjobeki/clan-core:clanServices-init into main

Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3334
This commit is contained in:
hsjobeki
2025-04-16 09:44:57 +00:00
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 [
./checks/flake-module.nix
./clanModules/flake-module.nix
./clanServices/flake-module.nix
./devShell.nix
./docs/nix/flake-module.nix
./flakeModules/flake-module.nix