NixOS / nixops

NixOps is a tool for deploying to NixOS machines in a network or cloud.
https://nixos.org/nixops
GNU Lesser General Public License v3.0
1.86k stars 365 forks source link

nixops create ... unrecognized arguments #1540

Closed YuMingLiao closed 2 years ago

YuMingLiao commented 2 years ago

nixops create trivial.nix usage: nixops [-h] [--version] [--pdb] operation ... nixops: error: unrecognized arguments: trivial.nix

I use nixopsUnstable nixops --version NixOps 2.0.0-pre-7220cbd

nix-channel --list nixos https://nixos.org/channels/nixos-22.05

YuMingLiao commented 2 years ago

change back to nixops and it works.

rschardt commented 2 years ago

The unstable version looks for a flake.nix or nixops.nix file in the current directory. Just rename 'trivial.nix' and you should be able to use it.