nixos/coder: fix broken service by referencing proper env (#305993)

This commit is contained in:
Kyle Carberry 2024-04-23 05:06:25 -04:00 committed by GitHub
parent 4a2b6151ad
commit 68a917dc64
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -169,7 +169,7 @@ in {
after = [ "network.target" ];
wantedBy = [ "multi-user.target" ];
environment = config.environment.extra // {
environment = cfg.environment.extra // {
CODER_ACCESS_URL = cfg.accessUrl;
CODER_WILDCARD_ACCESS_URL = cfg.wildcardAccessUrl;
CODER_PG_CONNECTION_URL = "user=${cfg.database.username} ${optionalString (cfg.database.password != null) "password=${cfg.database.password}"} database=${cfg.database.database} host=${cfg.database.host} ${optionalString (cfg.database.sslmode != null) "sslmode=${cfg.database.sslmode}"}";