mirror of
https://github.com/numtide/nixos-anywhere.git
synced 2024-08-17 00:50:24 +03:00
terraform/nix-build: use jsonencode function to pass parameter
This commit is contained in:
parent
1e93f9faa8
commit
aebe3d1cc7
@ -1,5 +1,7 @@
|
||||
locals {
|
||||
nix_options = "{\"options\": {${join(", ", [for k, v in var.nix_options : "\"${k}\": \"${v}\""])} } }"
|
||||
nix_options = jsonencode({
|
||||
options = { for k, v in var.nix_options : k => v }
|
||||
})
|
||||
}
|
||||
data "external" "nix-build" {
|
||||
program = [ "${path.module}/nix-build.sh" ]
|
||||
|
Loading…
Reference in New Issue
Block a user