Update controller.nix
This commit is contained in:
parent
bdccd6c267
commit
f9850d10ab
1 changed files with 11 additions and 3 deletions
|
|
@ -1,10 +1,18 @@
|
||||||
{ instanceName, settings, machine, roles, config, ... }: {
|
{ instanceName, settings, machine, roles, config, pkgs, ... }: {
|
||||||
config = {
|
config = {
|
||||||
clan.core.vars.generators = {
|
clan.core.vars.generators = {
|
||||||
zitadel = {
|
zitadel = {
|
||||||
share = false;
|
share = false;
|
||||||
|
|
||||||
|
files.initial-admin-password = { secret = true; deploy = true; };
|
||||||
|
|
||||||
|
runtimeInputs = with pkgs; [ pwgen ];
|
||||||
|
|
||||||
|
script = ''
|
||||||
|
pwgen 50 1 > "$out/token"
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
}
|
};
|
||||||
|
|
||||||
services.zitadel.steps.${instanceName} = {
|
services.zitadel.steps.${instanceName} = {
|
||||||
InstanceName = settings.hostName;
|
InstanceName = settings.hostName;
|
||||||
|
|
@ -19,7 +27,7 @@
|
||||||
Address = "chris@kruining.eu";
|
Address = "chris@kruining.eu";
|
||||||
Verified = true;
|
Verified = true;
|
||||||
};
|
};
|
||||||
Password = "KaasIsAwesome1!";
|
Password = config.clan.core.vars.generators.zitadel.initial-admin-password.value;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue