mirror of
https://github.com/nix-community/nix-on-droid.git
synced 2025-11-08 19:46:07 +01:00
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:
parent
f7c9beb2da
commit
b251ac818a
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue