-
Notifications
You must be signed in to change notification settings - Fork 7
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
[Feature request] README snippet for usage outside NixOS #1
Comments
Thanks for the issue @toonn. I thought about it, and I think you're right. Currently, I'm not sure how to approach it, but I'll experiment with implementing a home-manager-only version of NixOS manager and see what the challenges are (I suppose supporting both home-manager and NixOS would be a little overkill at this moment). |
That's neat for the long term. How about snippets for just using the |
Okay, you have to help me out a bit here, since I haven't used overlays before. According to the Wiki, you can put your overlay config into |
This section of the manual has an example. For home-manager it should be similar, using the {pkgs ? <nixpkgs>, ...}:
{ # My HM config
# ...
home.packages = (import ./packages.nix)
++ [ pkgs.four pkgs.manually pkgs.added pkgs.packages ];
# ...
} |
As many people get started using Nix on other distros, because they're not ready to take the plunge and install NixOS or are intimidated by the install process, it'd be cool if this tool could be used with nix-env or home-manager.
Since
packages.nix
is supposed to be a flat list of packages I think it could easily be used as thepaths
for a buildEnv, something like this overlay maybe:For home-manager I'm sure a similar snippet could be added to the README. Including support for configuring home-manager's services and other configuration would probably require changes to the implementation?
The text was updated successfully, but these errors were encountered: