-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Switch to extended Nixpkg's lib
#994
Conversation
4486d10
to
10c445f
Compare
@infinisil I gave the |
Nice, another thing that might need changing here is the NixOS module. NixOS/nixpkgs#75031 introduced the submoduleWith {
modules = [ ... ];
specialArgs.lib = extendedLib;
# To be backwards compatible with `types.submodule`
shorthandOnlyDefinesConfig = true;
} |
10c445f
to
2a425fe
Compare
@infinisil Yep, that does indeed seem to work just fine! @kalbasit Are you using HM with nix-darwin master? If so, would you mind giving this branch a try to verify that it still works? |
2a425fe
to
6cdd19e
Compare
Ah and I just realized that |
@infinisil Yeah. I left the I suppose it could cause difficulties for somebody who, for some strange reason, made their own module having options named |
6cdd19e
to
8b26499
Compare
241af0b
to
f6dbcf0
Compare
I'm getting an error building with the latest nix-darwin master, along with this branch. I have not changed anything in my configuration.
|
f6dbcf0
to
4badef8
Compare
@kalbasit Thanks! I force-pushed an update that I hope fixes this error. |
This change makes use of the `extend` function inside `lib` to inject a new `hm` field containing the Home Manager library functions. This simplifies use of the Home Manager library in the modules and reduces the risk of accidental infinite recursion. PR #994
It seems to build fine now. I switched the system and things are looking the same as well. |
@kalbasit Brilliant, I'll merge. |
4badef8
to
6e4b9af
Compare
This change makes use of the `extend` function inside `lib` to inject a new `hm` field containing the Home Manager library functions. This simplifies use of the Home Manager library in the modules and reduces the risk of accidental infinite recursion. PR nix-community#994
This change makes use of the
extend
function insidelib
to inject a newhm
field containing the Home Manager library functions. This simplifies use of the Home Manager library in the modules and reduces the risk of accidental infinite recursion.