Files
clan-core/clanServices/zerotier/flake-module.nix
2025-06-17 21:09:59 +02:00

37 lines
634 B
Nix

{
lib,
self,
inputs,
...
}:
let
module = lib.modules.importApply ./default.nix { };
in
{
clan.modules.zerotier = module;
perSystem =
{ ... }:
let
unit-test-module = (
self.clanLib.test.flakeModules.makeEvalChecks {
inherit module;
inherit self inputs;
testName = "zerotier";
tests = ./tests/eval-tests.nix;
testArgs = { };
}
);
in
{
imports = [
unit-test-module
];
clan.nixosTests.zerotier = {
imports = [ ./tests/vm/default.nix ];
clan.modules.zerotier = module;
};
};
}