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?
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
orflake.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 usingnixops.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
andnetwork-physical.nix
), can I write anixops.nix
file that would "import" these two files with NixOps 2, similar to how NixOps 1 does?