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.87k stars 364 forks source link

Unset -I option #1396

Open sephii opened 4 years ago

sephii commented 4 years ago

I've set the nixpath to one of my deployments by mistake (by using nixops modify -I foobar -d mydeployment) and wanted to revert to using the default nixpath but didn't find a way to do so (I tried nixops modify -I "" -d mydeployment but it just set nixpath to the current directory).

I ended up running the following SQL query: delete from DeploymentAttrs where deployment = 'xxx' and name = 'nixPath';, but I think it would be nice to be able to remove the nixpath option.

tewfik-ghariani commented 3 years ago

Wouldn't it be possible to modify the deployment again while omitting the nix path?

nixops modify -d mydeployment <nix-expression>