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 = { };
|
||||||
|
}
|
||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user