home-manager: Extend lib instead of pkgs.lib

This will allow extending `lib` using:

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

Without this the extended lib is not available to home-manager modules.
This commit is contained in:
Zhong Jianxin 2023-12-27 19:27:21 +08:00 committed by Alexander Sosedkin
parent f7c9beb2da
commit b251ac818a

View file

@ -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;