From eecf7c735f7c4120155045b39b8c563636481b5f Mon Sep 17 00:00:00 2001 From: Zhong Jianxin Date: Wed, 27 Dec 2023 19:27:21 +0800 Subject: [PATCH] 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. --- modules/home-manager.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/home-manager.nix b/modules/home-manager.nix index 21d3f3b..740c9d3 100644 --- a/modules/home-manager.nix +++ b/modules/home-manager.nix @@ -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;