fix modules
This commit is contained in:
parent
bf272f6607
commit
23e1bbe88a
3 changed files with 17 additions and 2 deletions
68
clanServices/zitadel/default.nix
Normal file
68
clanServices/zitadel/default.nix
Normal file
|
|
@ -0,0 +1,68 @@
|
|||
{ ... }:
|
||||
{
|
||||
_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";
|
||||
};
|
||||
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
15
clanServices/zitadel/flake-module.nix
Normal file
15
clanServices/zitadel/flake-module.nix
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
{ lib, ... }:
|
||||
let
|
||||
module = lib.modules.importApply ./default.nix {};
|
||||
in
|
||||
{
|
||||
clan.modules.zitadel = module;
|
||||
|
||||
perSystem = { ... }: {
|
||||
# clan.nixosTests.zitadel = {
|
||||
# imports = [ ./tests/vm/default.nix ];
|
||||
|
||||
# clan.modules."@amarth/zitadel" = module;
|
||||
# };
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue