Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Flakes support #57

Merged
merged 1 commit into from Aug 26, 2021
Merged

Conversation

phfroidmont
Copy link
Contributor

This change adds basic support for flakes.

It works but I'm unsure about the approach:
I've added an optional flake parameter, when set to true it will consider the value of nixos_config to be the name of the attribute to lookup in the nixosConfiguration output of the flake located in the same folder as the Terraform config.

@betaboon
Copy link
Contributor

I'm using this, works like a charm :)

@zimbatm zimbatm merged commit 646cacb into nix-community:master Aug 26, 2021
@zimbatm
Copy link
Member

zimbatm commented Sep 8, 2021

I just hit an issue where this doesn't work if the flake is in a sub-folder of the repo. Because it tries to instantiate from ./. and that doesn't contain the .git folder.

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.

None yet

3 participants