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

Hermetic configuration are not to be imported with deploy_nixos #80

Open tomferon opened 10 months ago

tomferon commented 10 months ago

My understanding is that I should be able to write something like this:

module “deploy_nixos” {
  # …
  hermetic = true
  config_pwd = “${path.module}/../somewhere”
  config = <<-EOF
    (import ./something.nix) {
      var1 = “${var.variable1}”;
    }
EOF
}

For this to be possible, hermetic configuration using config rather than config_file should not be imported as far as I can tell.