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
78349e4a81
commit
4b1a6ebcc7
1 changed files with 1 additions and 1 deletions
|
|
@ -7,7 +7,7 @@ with lib;
|
||||||
let
|
let
|
||||||
cfg = config.home-manager;
|
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 {
|
hmModule = types.submoduleWith {
|
||||||
specialArgs = { lib = extendedLib; } // cfg.extraSpecialArgs;
|
specialArgs = { lib = extendedLib; } // cfg.extraSpecialArgs;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue