diff options
author | Kyle Carberry <kyle@carberry.com> | 2024-04-23 05:06:25 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-23 06:06:25 -0300 |
commit | 68a917dc6480b8ab79c57df265916d35ab9c01c2 (patch) | |
tree | 82acb33fe6a03d62ceae8e72ab22d64572a6eb24 /nixos/modules | |
parent | 4a2b6151ada8e03998482f10db8a6c1db50af06b (diff) |
nixos/coder: fix broken service by referencing proper env (#305993)
Diffstat (limited to 'nixos/modules')
-rw-r--r-- | nixos/modules/services/web-apps/coder.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/services/web-apps/coder.nix b/nixos/modules/services/web-apps/coder.nix index 318a7c8fc1357..d4a5b7b2b89cd 100644 --- a/nixos/modules/services/web-apps/coder.nix +++ b/nixos/modules/services/web-apps/coder.nix @@ -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}"}"; |