nh icon indicating copy to clipboard operation
nh copied to clipboard

add: build-vm command to os subcommand

Open xiro-codes opened this issue 1 year ago • 5 comments

Implements build-vm command into nh

xiro-codes avatar Mar 08 '24 19:03 xiro-codes

Couldn't this be retrofitted into OsRebuildArgs::rebuild instead?

viperML avatar Mar 08 '24 20:03 viperML

Ill look into it, also love your blog it really helped me get into nix early on.

xiro-codes avatar Mar 08 '24 20:03 xiro-codes

So what do you want to do with this command? It is named build-vm, but it actually runs the vm. Also it shouldn't install it into the system profile, and probably neither ask for confirmation or diff.

Edit: in hindsight perhaps it would be better to split it off OsRebuildArgs::rebuild

viperML avatar Mar 10 '24 09:03 viperML

I needed to test my config that was broken. so i added it didn't think much farther than that. but the unneeded sudo request is a problem ps. it was still broken but its fixed now

xiro-codes avatar Mar 10 '24 13:03 xiro-codes

Question how do I keep the tmp dir everything is created in so I can ask if they want to run vs just build the vm

xiro-codes avatar Mar 13 '24 16:03 xiro-codes