Skip to content

Commit

Permalink
home-manager: Extend lib instead of pkgs.lib
Browse files Browse the repository at this point in the history
This will allow extending `lib` using:

```
_modules.args.lib = ...
```

Without this the extended lib is not available to home-manager modules.
  • Loading branch information
azuwis authored and t184256 committed Feb 17, 2024
1 parent f7c9beb commit b251ac8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/home-manager.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ with lib;
let
cfg = config.home-manager;

extendedLib = import (home-manager-path + "/modules/lib/stdlib-extended.nix") pkgs.lib;
extendedLib = import (home-manager-path + "/modules/lib/stdlib-extended.nix") lib;

hmModule = types.submoduleWith {
specialArgs = { lib = extendedLib; } // cfg.extraSpecialArgs;
Expand Down

0 comments on commit b251ac8

Please sign in to comment.