nix-community / terraform-nixos

A set of Terraform modules that are designed to deploy NixOS [maintainer=@adrian-gierakowski]
Apache License 2.0
333 stars 61 forks source link

Error when using config and config_pwd option #58

Open zeroware opened 3 years ago

zeroware commented 3 years ago

Hello,

When I use the config and config_pwd option to pass a dynamic nixos configuration I get the error :

error: cannot coerce a set to a string, at (string):6:14

By looking at the code I can see that the configuration variable is used with the import function which only work if the type is a string.

https://github.com/tweag/terraform-nixos/blob/646cacb12439ca477c05315a7bfd49e9832bc4e3/deploy_nixos/nixos-instantiate.sh#L30

Am I using the config parameter wrong ?