services/router: init

This commit is contained in:
2026-09-17 08:57:32 +07:00
parent b85d6637f1
commit 60aac6efb2
39 changed files with 1831 additions and 929 deletions
+9
View File
@@ -48,6 +48,9 @@
"x86_64-darwin"
];
# perSystem.clan.nixosTests: NixOS VM tests of our own clan services.
imports = [ clan-core.flakeModules.testModule ];
flake = {
inherit (clan.config) nixosConfigurations nixosModules clanInternals;
clan = clan.config;
@@ -84,6 +87,12 @@
formatter = treefmtEval.config.build.wrapper;
checks.formatting = treefmtEval.config.build.check self;
# `nix build .#checks.x86_64-linux.router` (VM test, Linux only).
clan.nixosTests.router = {
imports = [ ./modules/clan/router/tests/vm ];
clan.modules.router = ./modules/clan/router;
};
# Add the Clan cli tool to the dev shell.
# Use "nix develop" to enter the dev shell.
devShells.default = pkgs.mkShell {