hmmm
This commit is contained in:
parent
dfd604f73c
commit
1bb2f3b9b3
8 changed files with 47 additions and 28 deletions
|
|
@ -6,7 +6,7 @@ in
|
||||||
_class = "clan.service";
|
_class = "clan.service";
|
||||||
|
|
||||||
manifest = {
|
manifest = {
|
||||||
name = "amarth/k3s";
|
name = "amarth-services/k3s";
|
||||||
description = "K3s service in order to set up a cluster";
|
description = "K3s service in order to set up a cluster";
|
||||||
categories = [ "System" "Network" "Containers" "Virtualisation" ];
|
categories = [ "System" "Network" "Containers" "Virtualisation" ];
|
||||||
readme = readFile ./README.md;
|
readme = readFile ./README.md;
|
||||||
|
|
|
||||||
|
|
@ -1,15 +1,15 @@
|
||||||
{ lib, ... }:
|
{ ... }:
|
||||||
let
|
let
|
||||||
module = lib.modules.importApply ./default.nix {};
|
module = ./default.nix;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
clan.modules.k3s = module;
|
clan.modules.k3s = module;
|
||||||
|
|
||||||
perSystem = { ... }: {
|
perSystem = { ... }: {
|
||||||
# clan.nixosTests.k3s = {
|
clan.nixosTests.k3s = {
|
||||||
# imports = [ ./tests/vm/default.nix ];
|
imports = [ ./tests/vm/default.nix ];
|
||||||
|
|
||||||
# clan.modules."@amarth/k3s" = module;
|
clan.modules."@amarth/k3s" = module;
|
||||||
# };
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
1
clanServices/zitadel/README.md
Normal file
1
clanServices/zitadel/README.md
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
# Zitadel Clan-service
|
||||||
|
|
@ -6,7 +6,7 @@ in
|
||||||
_class = "clan.service";
|
_class = "clan.service";
|
||||||
|
|
||||||
manifest = {
|
manifest = {
|
||||||
name = "amarth/zitadel";
|
name = "amarth-services/zitadel";
|
||||||
description = "Zitadel service module";
|
description = "Zitadel service module";
|
||||||
categories = [ "System" "Identity" "IAM" ];
|
categories = [ "System" "Identity" "IAM" ];
|
||||||
readme = readFile ./README.md;
|
readme = readFile ./README.md;
|
||||||
|
|
|
||||||
|
|
@ -1,15 +1,15 @@
|
||||||
{ lib, ... }:
|
{ ... }:
|
||||||
let
|
let
|
||||||
module = lib.modules.importApply ./default.nix {};
|
module = ./default.nix;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
clan.modules.zitadel = module;
|
clan.modules.zitadel = module;
|
||||||
|
|
||||||
perSystem = { ... }: {
|
perSystem = { ... }: {
|
||||||
# clan.nixosTests.zitadel = {
|
clan.nixosTests.zitadel = {
|
||||||
# imports = [ ./tests/vm/default.nix ];
|
imports = [ ./tests/vm/default.nix ];
|
||||||
|
|
||||||
# clan.modules."@amarth/zitadel" = module;
|
clan.modules."@amarth/zitadel" = module;
|
||||||
# };
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{ pkgs, ... }:
|
{ pkgs, ... }:
|
||||||
{
|
{
|
||||||
name = "service-k3s";
|
name = "service-zitadel";
|
||||||
|
|
||||||
clan = {
|
clan = {
|
||||||
directory = ./.;
|
directory = ./.;
|
||||||
|
|
@ -13,16 +13,16 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
instances = {
|
instances = {
|
||||||
k3s = {
|
zitadel = {
|
||||||
module = {
|
module = {
|
||||||
name = "@amarth/k3s";
|
name = "@amarth/zitadel";
|
||||||
input = "self";
|
input = "self";
|
||||||
};
|
};
|
||||||
|
|
||||||
roles.server.machines."node1" = {};
|
roles.controller.machines."node1" = {};
|
||||||
|
|
||||||
roles.agent.machines."node2" = {};
|
roles.peer.machines."node2" = {};
|
||||||
roles.agent.machines."node3" = {};
|
roles.peer.machines."node3" = {};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
@ -37,4 +37,4 @@
|
||||||
start_all()
|
start_all()
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
17
flake.lock
generated
17
flake.lock
generated
|
|
@ -201,7 +201,8 @@
|
||||||
"clan-core": "clan-core",
|
"clan-core": "clan-core",
|
||||||
"devshell": "devshell",
|
"devshell": "devshell",
|
||||||
"flake-parts": "flake-parts",
|
"flake-parts": "flake-parts",
|
||||||
"nixpkgs": "nixpkgs_2"
|
"nixpkgs": "nixpkgs_2",
|
||||||
|
"systems": "systems_2"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"sops-nix": {
|
"sops-nix": {
|
||||||
|
|
@ -240,6 +241,20 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"systems_2": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1681028828,
|
||||||
|
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
|
||||||
|
"owner": "nix-systems",
|
||||||
|
"repo": "default",
|
||||||
|
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"id": "systems",
|
||||||
|
"type": "indirect"
|
||||||
|
}
|
||||||
|
},
|
||||||
"treefmt-nix": {
|
"treefmt-nix": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
|
|
|
||||||
13
flake.nix
13
flake.nix
|
|
@ -21,24 +21,27 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs =
|
outputs =
|
||||||
inputs@{ flake-parts, ... }:
|
inputs@{ flake-parts, systems, ... }:
|
||||||
flake-parts.lib.mkFlake { inherit inputs; } ({ ... }: {
|
flake-parts.lib.mkFlake { inherit inputs; } ({ ... }: {
|
||||||
systems = [
|
systems = [
|
||||||
"x86_64-linux"
|
"x86_64-linux"
|
||||||
];
|
];
|
||||||
|
|
||||||
imports = [
|
imports = [
|
||||||
|
flake-parts.flakeModules.modules
|
||||||
inputs.clan-core.flakeModules.default
|
inputs.clan-core.flakeModules.default
|
||||||
inputs.devshell.flakeModule
|
inputs.devshell.flakeModule
|
||||||
|
|
||||||
|
./clanServices/flake-module.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
clan = {
|
clan = {
|
||||||
meta.name = "amarth-services";
|
meta.name = "amarth-services";
|
||||||
|
|
||||||
modules = {
|
# modules = {
|
||||||
"@amarth/zitadel" = flake-parts.lib.importApply ./clanServices/zitadel/default.nix {};
|
# "@amarth/zitadel" = flake-parts.lib.importApply ./clanServices/zitadel/default.nix {};
|
||||||
"@amarth/k3s" = flake-parts.lib.importApply ./clanServices/k3s/default.nix {};
|
# "@amarth/k3s" = flake-parts.lib.importApply ./clanServices/k3s/default.nix {};
|
||||||
};
|
# };
|
||||||
};
|
};
|
||||||
|
|
||||||
perSystem = { system, ... }: {
|
perSystem = { system, ... }: {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue