Skip to content

Conversation

@tomferon
Copy link

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.

@KiaraGrouwstra
Copy link

KiaraGrouwstra commented Apr 12, 2025

this seems related to #58. i think #85 would make for an approach that would facilitate both the config / config_file scenarios.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants