Merge branch 'main' of ssh://git.amarth.cloud/amarth/services

This commit is contained in:
Chris Kruining 2025-09-25 07:57:47 +00:00
commit 72c0dbe541
10 changed files with 138 additions and 7 deletions

View file

@ -1,4 +1,4 @@
{ ... }:
{ self, ... }:
let
inherit (builtins) readFile;
in
@ -26,6 +26,8 @@ in
perInstance = { instanceName, settings, machine, roles, ... }: {
nixosModule = { config, pkgs, ... }: {
imports = [ self.inputs.amarth-customer-portal.nixosModules.default ];
services.amarth-customer-portal = {
enable = true;
};

View file

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

View file

@ -78,6 +78,45 @@ in
role = "server";
tokenFile = config.clan.core.vars.generators.k3s.files.token.path;
clusterInit = true;
autoDeployCharts = {
harbor = {
name = "harbor";
repo = "https://helm.goharbor.io";
version = "1.14.0";
hash = "sha256-fMP7q1MIbvzPGS9My91vbQ1d3OJMjwc+o8YE/BXZaYU=";
values = {
existingSecretAdminPassword = "harbor-admin";
expose = {
tls = {
enabled = true;
certSource = "secret";
secret.secretName = "my-tls-secret";
};
ingress = {
hosts.core = "example.com";
className = "nginx";
};
};
};
};
crossplane = {
name = "crossplane";
repo = "https://charts.crossplane.io/stable";
version = "2.0.2";
hash = "sha256-5gk/dvOJAy5O++QkrnS0oVZaanDgNmF0107qKyri3Js=";
targetNamespace = "crossplane-system";
createNamespace = true;
values = {
replicas = 1;
deploymentStrategy = "RollingUpdate";
};
};
};
};
};