home-manager: allow the tool to be installed in submodule setups#4342
home-manager: allow the tool to be installed in submodule setups#4342musjj wants to merge 1 commit intonix-community:masterfrom
Conversation
|
Yeah, it's been a long-standing wish of mine to install home-manager also when used as a NixOS module. The tool would need to be reduced quite a bit when used like that, though. For example, we cannot support sub-commands like They more or less work right now mostly as an implementation detail; basically that HM maintains its own profile even when used inside a NixOS profile. We'll probably eventually move to place the HM generation inside the NixOS profile and then the standalone and NixOS module versions no longer will be interoperable. Pretty much the only sub-command that we could support would be things like |
|
I see, so you're not supposed to run I guess I'll close it for now, since it's not really ready yet. |
|
I don't see why it couldn't be supported. |
|
@ncfavier Yeah, building and running the activation script would work but it would not have any persistent effect (similar to So yeah, I guess we in principle could support Ultimately I would like to have the current HM generation be activated through a systemd user service on login. Then it would be very natural to support |
Description
Is there a reason why the standalone tool is not allowed to be installed when you are using home-manager as a submodule? I guess it's not necessary since you can just use
nixos-rebuildinstead. But if the user chooses to enable it anyways, IMO it should be properly installed.Checklist
Change is backwards compatible.
Code formatted with
./format.Code tested through
nix-shell --pure tests -A run.allornix develop --ignore-environment .#allusing Flakes.Test cases updated/added. See example.
Commit messages are formatted like
See CONTRIBUTING for more information and recent commit messages for examples.
If this PR adds a new module
Maintainer CC
@rycee