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

In NixOps 2, is it possible to use multi-file network definitions from NixOps 1? #1578

Open
pvgoran opened this issue Aug 23, 2024 · 0 comments

Comments

@pvgoran
Copy link

pvgoran commented Aug 23, 2024

I'm currently using NixOps 1 on NixOS 23.05, and I'm considering if I can/should migrate to NixOps 2 (as part of NixOS upgrade).

As far as I understand, with NixOps 2 a network is defined from a single file: nixops.nix or flake.nix. I don't want to touch the "flake" approach because I don't understand flakes in general, and this approach is said to be experimental, so I'll assume using nixops.nix.

So, the question is: if I have a network definition for NixOps 1 split into two files (the "logical" part and the "physical" part, like, network.nix and network-physical.nix), can I write a nixops.nix file that would "import" these two files with NixOps 2, similar to how NixOps 1 does?

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

No branches or pull requests

1 participant