Add lib argument to homeManagerConfiguration (#2753)

This commit is contained in:
Luc Chabassier 2022-04-18 00:14:41 +02:00 committed by GitHub
parent f47001cec9
commit 5ac84ebeef
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View file

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

View file

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