Compare commits
No commits in common. "7e0a5243647dceeb09ff3095938282370f4047d4" and "ceed1a0cdf5b72c290ad5e060f8a68539847df67" have entirely different histories.
7e0a524364
...
ceed1a0cdf
2 changed files with 3 additions and 72 deletions
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
description = "Clan services for use with Amarth Cloud";
|
description = "Amarth Cloud's Clan services";
|
||||||
|
|
||||||
inputs = {
|
inputs = {
|
||||||
clan-core.url = "https://git.clan.lol/clan/clan-core/archive/main.tar.gz";
|
clan-core.url = "https://git.clan.lol/clan/clan-core/archive/main.tar.gz";
|
||||||
|
|
@ -23,14 +23,13 @@
|
||||||
{
|
{
|
||||||
# inherit (clan.config) nixosConfigurations nixosModules clanInternals;
|
# inherit (clan.config) nixosConfigurations nixosModules clanInternals;
|
||||||
# clan = clan.config;
|
# clan = clan.config;
|
||||||
|
|
||||||
imports = [
|
imports = [
|
||||||
clan-core.flakeModules.default
|
clan-core.flakeModules.default
|
||||||
# ./clanServices/flake-module.nix
|
# ./clanServices/flake-module.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
clan.modules = {
|
clan.modules = {
|
||||||
"@amarth/zitadel" = flake-parts.lib.importApply ./modules/service/zitadel/default.nix {};
|
|
||||||
"@amarth/k3s" = flake-parts.lib.importApply ./clanServices/k3s/default.nix {};
|
"@amarth/k3s" = flake-parts.lib.importApply ./clanServices/k3s/default.nix {};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -48,4 +47,4 @@
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
@ -1,68 +0,0 @@
|
||||||
{ ... }:
|
|
||||||
{
|
|
||||||
_class = "clan.service";
|
|
||||||
|
|
||||||
manifest.name = "zitadel";
|
|
||||||
|
|
||||||
roles = {
|
|
||||||
controller = {
|
|
||||||
interface = {
|
|
||||||
options = {};
|
|
||||||
};
|
|
||||||
|
|
||||||
perInstance = { instanceName, settings, machine, roles, ... }: {
|
|
||||||
nixosModule = { config }: {
|
|
||||||
config = {
|
|
||||||
services.zitadel.steps.${instanceName} = {
|
|
||||||
InstanceName = settings.hostName;
|
|
||||||
|
|
||||||
Org = {
|
|
||||||
Name = settings.displayName;
|
|
||||||
Human = {
|
|
||||||
UserName = "chris";
|
|
||||||
FirstName = "Chris";
|
|
||||||
LastName = "Kruining";
|
|
||||||
Email = {
|
|
||||||
Address = "chris@kruining.eu";
|
|
||||||
Verified = true;
|
|
||||||
};
|
|
||||||
Password = "KaasIsAwesome1!";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
peer = {};
|
|
||||||
};
|
|
||||||
|
|
||||||
pweMachine = { instances, machine, ... }: {
|
|
||||||
nixosModule = { config, ... }: {
|
|
||||||
config = {
|
|
||||||
services.zitadel = {
|
|
||||||
enable = true;
|
|
||||||
|
|
||||||
settings = {
|
|
||||||
Port = 9092;
|
|
||||||
|
|
||||||
ExternalDomain = "auth.amarth.cloud";
|
|
||||||
ExternalPort = 443;
|
|
||||||
ExternalSecure = true;
|
|
||||||
|
|
||||||
Metrics.Type = "otel";
|
|
||||||
Tracing.Type = "otel";
|
|
||||||
Telemetry.Enabled = true;
|
|
||||||
|
|
||||||
SystemDefaults = {
|
|
||||||
PasswordHasher.Hasher.Algorithm = "argon2id";
|
|
||||||
SecretHasher.Hasher.Algorithm = "argon2id";
|
|
||||||
};
|
|
||||||
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue