Open montchr opened 1 year ago
This should theoretically be possible without much hassle, but I don't run non-NixOS targets and can't work on this issue actively. If you are interested in contributing this, I'll be happy to review the PR.
Currently, nixos-rebuild
is hard-coded here. To implement what you want, the simplest option would be to make the complete rebuild/deploy command configurable, so you can run something else than nixos-rebuild
, e.g. a home-manager command in your case.
I just opened #23 which could be used to do this. Though, at the moment, I believe lollypops discovers deploy targets based on nixosConfigurations
. I'd like to see support for other platforms too, so if it's not being looked at already, I'll take a stab at discovering any systems that are defined in a flake
I don't mind merging the ability for adding extra deploy targets. You are correct, currently only nixosConfigurations
are looked at, which in my opinion should remain the default. If you want to try to implement it, I'll happinly review PR's ;)
One of the main benefits of
deploy-rs
is its ability to deployhomeConfigurations
to non-NixOS targets. However, I really appreciate and prefer the simplicity in Lollypops.Would it be in scope for Lollypops to leverage the
home-manager
CLI to deploy individual user profiles on non-NixOS (generic) Linux destinations? I have not seen anything in the documentation about such a feature.