This commit is contained in:
Chris Kruining 2025-09-17 21:02:13 +02:00
parent dfd604f73c
commit 1bb2f3b9b3
Signed by: chris
SSH key fingerprint: SHA256:nG82MUfuVdRVyCKKWqhY+pCrbz9nbX6uzUns4RKa1Pg
8 changed files with 47 additions and 28 deletions

View file

@ -6,7 +6,7 @@ in
_class = "clan.service";
manifest = {
name = "amarth/k3s";
name = "amarth-services/k3s";
description = "K3s service in order to set up a cluster";
categories = [ "System" "Network" "Containers" "Virtualisation" ];
readme = readFile ./README.md;

View file

@ -1,15 +1,15 @@
{ lib, ... }:
{ ... }:
let
module = lib.modules.importApply ./default.nix {};
module = ./default.nix;
in
{
clan.modules.k3s = module;
perSystem = { ... }: {
# clan.nixosTests.k3s = {
# imports = [ ./tests/vm/default.nix ];
clan.nixosTests.k3s = {
imports = [ ./tests/vm/default.nix ];
# clan.modules."@amarth/k3s" = module;
# };
clan.modules."@amarth/k3s" = module;
};
};
}
}

View file

@ -0,0 +1 @@
# Zitadel Clan-service

View file

@ -6,7 +6,7 @@ in
_class = "clan.service";
manifest = {
name = "amarth/zitadel";
name = "amarth-services/zitadel";
description = "Zitadel service module";
categories = [ "System" "Identity" "IAM" ];
readme = readFile ./README.md;

View file

@ -1,15 +1,15 @@
{ lib, ... }:
{ ... }:
let
module = lib.modules.importApply ./default.nix {};
module = ./default.nix;
in
{
clan.modules.zitadel = module;
perSystem = { ... }: {
# clan.nixosTests.zitadel = {
# imports = [ ./tests/vm/default.nix ];
clan.nixosTests.zitadel = {
imports = [ ./tests/vm/default.nix ];
# clan.modules."@amarth/zitadel" = module;
# };
clan.modules."@amarth/zitadel" = module;
};
};
}

View file

@ -1,6 +1,6 @@
{ pkgs, ... }:
{
name = "service-k3s";
name = "service-zitadel";
clan = {
directory = ./.;
@ -13,16 +13,16 @@
};
instances = {
k3s = {
zitadel = {
module = {
name = "@amarth/k3s";
name = "@amarth/zitadel";
input = "self";
};
roles.server.machines."node1" = {};
roles.controller.machines."node1" = {};
roles.agent.machines."node2" = {};
roles.agent.machines."node3" = {};
roles.peer.machines."node2" = {};
roles.peer.machines."node3" = {};
};
};
};
@ -37,4 +37,4 @@
start_all()
'';
};
}
}