-
-
Notifications
You must be signed in to change notification settings - Fork 363
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
Create multiple networks from the same flake #1451
Comments
I think maybe we should default |
I think I may be in a similar position: I've migrated from nixops 1.x where I had multiple deployments with different network definitions and I'm unable to replicate this in nixops 2.0. My current "solution" is to move my networks to separate folders and use It doesn't seem to be possible to make multiple network definitions in either nixops.nix or flakes.nix, unless I'm missing something.... which is quite possible! (My use case is staging and testing environments using libvirtd locally and a proper deployment on ec2.) |
When creating a network from a flake, the network definition from
outputs.nixopsConfigurations.default
is used. However I think that using something likenixops create -d test --flake .#test
, which would use the definition fromoutput.nixopsConfigurations.test
should be possible. Otherwise making a nixopsConfigurations attrset doesn't really make sense and is pretty counter-intuitive. (I had to check the code to find out here to find out, what the weird error I was getting meant).The text was updated successfully, but these errors were encountered: