Update default.nix
This commit is contained in:
parent
72fbd32392
commit
dae3cfb8c3
1 changed files with 14 additions and 0 deletions
|
|
@ -41,9 +41,23 @@ in
|
|||
perMachine = { instances, machine, ... }: {
|
||||
nixosModule = { config, ... }: {
|
||||
config = {
|
||||
clan.core.vars.generators.zitadel = {
|
||||
shared = false;
|
||||
|
||||
files.masterKey = { deploy = true; secret = true; };
|
||||
|
||||
# https://zitadel.com/docs/self-hosting/manage/configure#masterkey
|
||||
# The master key has to be 32 bytes
|
||||
script = ''
|
||||
head -c 32 /dev/urandom > $out/masterKey
|
||||
'';
|
||||
};
|
||||
|
||||
services.zitadel = {
|
||||
enable = true;
|
||||
|
||||
masterKeyFile = config.clan.core.vars.generators.zitadel.masterKey.path;
|
||||
|
||||
settings = {
|
||||
Port = 9092;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue