Mic92 / nixos-shell

Spawns lightweight nixos vms in a shell
MIT License
685 stars 39 forks source link

Run one-off command #53

Open srid opened 2 years ago

srid commented 2 years ago

Instead of dropping into the login shell, would it be possible to create a CLI mode wherein the VM is launched, root shell entered and the given command is run, before exiting?

eg:

nixos-shell --flake github:srid/nixos-config#corsair --run "cd /Downloads && protonvpn c -f && aria2c ${MAGNET}"