Closed dnr closed 1 year ago
Definitely a valid concern. Unfortunately it looks like dash is missing printf %q
or an equivalent, so doing it really properly would be messy.
@dnr can you have a look if https://github.com/krebs/krops/commit/9c49e9aa24d7793e2dc99d00e9df04d65851a8ef is good enough for your needs?
Yup, that'll do just fine. I have a wrapper script anyway, so I just hooked that up with --argstr
so I can do it from the cli. It's extra derivations but that's no big deal. Thanks!
I've been using krops to maintain a few devices and recently found myself wanting to do
nixos-rebuild build
andnixos-rebuild boot
when trying playing around with configs and then upgrading NixOS releases. I switched towriteCommand
instead ofwriteDeploy
temporarily, but it would be nicer if I could just do this on the command-line.If you don't like this approach, please consider this a feature request to add it in a different way.