nixos/coder: fix broken service by referencing proper env (#305993)
This commit is contained in:
parent
4a2b6151ad
commit
68a917dc64
@ -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}"}";
|
||||
|
Loading…
Reference in New Issue
Block a user