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

Usage on non-NixOS Platforms? #32

Closed matthiasbeyer closed 2 years ago

matthiasbeyer commented 2 years ago

Hi,

I guess krops can also be used to deploy non-nixos systems (e.g. ubuntu with nix installed) somehow? With writeCommand maybe somehow?

Would be nice if there was an example for that! :smile:

mrVanDalo commented 2 years ago

I never used nix without NixOS. Isn't nix just a package manager? So there is no module system, just pkgs. You can't manipulate systemd or anything in /etc using just the nix package manager. So what do you want to provision? Or am I wrong?

matthiasbeyer commented 2 years ago

Yes, the idea was to just deploy package sets to a non-nixos host. Like user environments and so on, nothing in the actual system!

Lassulus commented 2 years ago

can this be done with writeCommand?

mrVanDalo commented 2 years ago

Yes this can be done with writeCommand. But you deployment depends heavily on what you want. For example I use home-manager and flakes on my work machine. Another person would use plain nix. So you are on you own using writeCommand, I guess.