mirror of
https://github.com/nix-community/home-manager
synced 2024-11-22 12:43:14 +00:00
Add lib argument to homeManagerConfiguration (#2753)
This commit is contained in:
parent
f47001cec9
commit
5ac84ebeef
2 changed files with 3 additions and 3 deletions
|
@ -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; };
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue