Merge branch 'main' of ssh://git.amarth.cloud/amarth/infra
Some checks failed
Test action / Print hello world (push) Failing after 1m9s

This commit is contained in:
Chris Kruining 2025-09-18 15:30:29 +02:00
commit ba66bac6b6
Signed by: chris
SSH key fingerprint: SHA256:nG82MUfuVdRVyCKKWqhY+pCrbz9nbX6uzUns4RKa1Pg
22 changed files with 326 additions and 97 deletions

View file

@ -7,25 +7,29 @@
inventory.machines = {
m1 = {
name = "Management node 1";
name = "management-1";
description = "Management node 1";
machineClass = "nixos";
tags = [ "cloud:amarth" "region:oss" "nodeType:management" "criticallity: medium" "" ];
tags = [ "cloud:amarth" "region:oss" "nodeType:management" "criticallity:critical" "" ];
deploy.targetHost = "root@192.168.1.222";
};
c1 = {
name = "Compute node 1";
name = "compute-1";
description = "Compute node 1";
machineClass = "nixos";
tags = [ "cloud:amarth" "region:oss" "nodeType:compute" "criticallity: medium" "" ];
tags = [ "cloud:amarth" "region:oss" "nodeType:compute" "criticallity:medium" "" ];
};
c2 = {
name = "Compute node 2";
name = "compute-2";
description = "Compute node 2";
machineClass = "nixos";
tags = [ "cloud:amarth" "region:oss" "nodeType:compute" "criticallity: medium" "" ];
tags = [ "cloud:amarth" "region:oss" "nodeType:compute" "criticallity:medium" "" ];
};
c3 = {
name = "Compute node 3";
name = "compute-3";
description = "Compute node 3";
machineClass = "nixos";
tags = [ "cloud:amarth" "region:oss" "nodeType:compute" "criticallity: medium" "" ];
tags = [ "cloud:amarth" "region:oss" "nodeType:compute" "criticallity:medium" "" ];
};
};
@ -45,17 +49,23 @@
zitadel = {
module = {
name = "@amarth/zitadel";
name = "zitadel";
input = "amarth-services";
};
roles.controller.machines."m1" = {};
roles.controller = {
machines."m1" = {};
settings = {
hostName = "auth.amarth.cloud";
displayName = "Amarth";
};
};
};
k3s = {
module = {
name = "@amarth/k3s";
input = "amarth";
name = "k3s";
input = "amarth-services";
};
roles.server.machines."c1" = {};
@ -69,8 +79,26 @@
# machines/jon/configuration.nix will be automatically imported.
# See: https://docs.clan.lol/guides/more-machines/#automatic-registration
machines = {
m1 = { config, pkgs, ... }: {
environment.systemPackages = [ pkgs.asciinema ];
# m1 = { config, pkgs, ... }: {
# environment.systemPackages = [ pkgs.asciinema ];
# nixpkgs.hostPlatform = "x86_64-linux";
# };
m1 = {
nixpkgs.hostPlatform = "x86_64-linux";
networking.domain = "amarth.local";
};
c1 = {
nixpkgs.hostPlatform = "x86_64-linux";
networking.domain = "amarth.local";
};
c2 = {
nixpkgs.hostPlatform = "x86_64-linux";
networking.domain = "amarth.local";
};
c3 = {
nixpkgs.hostPlatform = "x86_64-linux";
networking.domain = "amarth.local";
};
};
}