init(clanServices): add zerotier boilerplate to clanServices
This commit is contained in:
8
clanServices/flake-module.nix
Normal file
8
clanServices/flake-module.nix
Normal file
@@ -0,0 +1,8 @@
|
||||
{ self, lib, ... }:
|
||||
{
|
||||
clan.inventory.modules = {
|
||||
zerotier-redux = lib.modules.importApply ./zerotier-redux/default.nix {
|
||||
inherit (self) packages;
|
||||
};
|
||||
};
|
||||
}
|
||||
13
clanServices/zerotier-redux/default.nix
Normal file
13
clanServices/zerotier-redux/default.nix
Normal 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 = { };
|
||||
}
|
||||
Reference in New Issue
Block a user