New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NixOS module optional support for user packages #580
Conversation
…me?>.packages (#159) Switch home manager to nix-community/home-manager#580 in order to install user packages through NixOS's user packages. This allows me to build VM that are able to have user packages.
79731e6
to
52f7df1
Compare
|
@infinisil I enjoyed that review 😀 I tried to be fairly careful about this change although I still don't entirely trust the /etc/profiles way of installing because I suspect it is not widely used. But I think it was a good idea of @kalbasit and @marsam to finally merge it to master with a feature flag. I'll see about merging this on the weekend. |
When using the NixOS module we cannot guarantee that the Nix store will be writable during startup. Installing the user packages through `nix-env -i` will fail in these cases. This commit adds a NixOS option `home-manager.useUserPackages` that, when enabled, installs user packages through the NixOS users.users.<name?>.packages option. Note, when submodule support and external package install is enabled then the installed packages are not available in `~/.nix-profile`. We therefore set `home.profileDirectory` directly to the HM profile packages.
52f7df1
to
5cf9a2d
Compare
Rebased to master in 799a90e with a brief news entry added. Thanks everybody for the input and patience in getting this merged 🙂 |
No description provided.