From 5ac84ebeef5d2566ea458b81375cc6eafa19c225 Mon Sep 17 00:00:00 2001 From: Luc Chabassier Date: Mon, 18 Apr 2022 00:14:41 +0200 Subject: [PATCH] Add lib argument to homeManagerConfiguration (#2753) --- flake.nix | 4 ++-- modules/default.nix | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/flake.nix b/flake.nix index 5cdbad3e..f21b1dd0 100644 --- a/flake.nix +++ b/flake.nix @@ -45,11 +45,11 @@ homeManagerConfiguration = { configuration, system, homeDirectory , username, extraModules ? [ ], extraSpecialArgs ? { } , pkgs ? builtins.getAttr system nixpkgs.outputs.legacyPackages - , check ? true, stateVersion ? "20.09" }@args: + , lib ? pkgs.lib, check ? true, stateVersion ? "20.09" }@args: assert nixpkgs.lib.versionAtLeast stateVersion "20.09"; import ./modules { - inherit pkgs check extraSpecialArgs; + inherit pkgs lib check extraSpecialArgs; configuration = { ... }: { imports = [ configuration ] ++ extraModules; home = { inherit homeDirectory stateVersion username; }; diff --git a/modules/default.nix b/modules/default.nix index 2d192bc5..02be152f 100644 --- a/modules/default.nix +++ b/modules/default.nix @@ -21,7 +21,7 @@ let in fold f res res.config.warnings; - extendedLib = import ./lib/stdlib-extended.nix pkgs.lib; + extendedLib = import ./lib/stdlib-extended.nix lib; hmModules = import ./modules.nix {