pinpox / lollypops

Lollypop Operations - NixOS Deployment Tool
https://pinpox.github.io/lollypops/
GNU General Public License v3.0
118 stars 17 forks source link

feature request: support for deploying home-manager configs on generic linux #16

Open montchr opened 1 year ago

montchr commented 1 year ago

One of the main benefits of deploy-rs is its ability to deploy homeConfigurations 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.

pinpox commented 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.

cmacrae commented 11 months ago

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

pinpox commented 11 months ago

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 ;)