nixos-shell icon indicating copy to clipboard operation
nixos-shell copied to clipboard

Run one-off command

Open srid opened this issue 2 years ago • 0 comments

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}"

srid avatar Apr 04 '22 21:04 srid