mirror of
https://github.com/dump-dvb/nix-config.git
synced 2024-06-12 11:14:07 +02:00
fixed env variables for clicky-bunty
This commit is contained in:
parent
54a28cb030
commit
d6451b9385
|
@ -18,13 +18,13 @@ in
|
|||
wantedBy = [ "multi-user.target" ];
|
||||
|
||||
script = ''
|
||||
export SALT_PATH=$(cat ${config.sops.secrets.postgres_password_hash_salt.path})
|
||||
export POSTGRES_PASSWORD=$(cat ${config.sops.secrets.postgres_password.path})
|
||||
exec ${pkgs.clicky-bunty-server}/bin/clicky-bunty-server --host 127.0.0.1 --port ${toString port}&
|
||||
'';
|
||||
|
||||
environment = {
|
||||
"POSTGRES" = "localhost:5432";
|
||||
"SALT_PATH" = config.sops.secrets.postgres_password_hash_salt.path;
|
||||
"POSTGRES_PASSWORD" = config.sops.secrets.postgres_password.path;
|
||||
};
|
||||
serviceConfig = {
|
||||
Type = "forking";
|
||||
|
|
Loading…
Reference in New Issue
Block a user