krebs / krops

Mirror of https://cgit.krebsco.de/krops/about/ (PRs / issues accepted, as can be seen by not having them disabled)
Do What The F*ck You Want To Public License
132 stars 18 forks source link

On a fresh system, git is missing #33

Open matthiasbeyer opened 2 years ago

matthiasbeyer commented 2 years ago

Hi,

I just installed a raspberry pi 4 with nixos and then tried to deploy it with krops. Problem is that a fresh install does not have git installed...

The obvious solution is to login as root and nix-env -iA nixos.git, although it is ... ugly. Maybe there's a way so that krops does spawn a nix-shell on the remote system and installs the minimum required things in there for deploying things?

4z3 commented 2 years ago

An option could be added to e.g. writeDeploy to optionally run commands with nix-shell.