mirror of
https://github.com/nix-community/home-manager
synced 2024-11-05 02:39:45 +01: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
|
homeManagerConfiguration = { configuration, system, homeDirectory
|
||||||
, username, extraModules ? [ ], extraSpecialArgs ? { }
|
, username, extraModules ? [ ], extraSpecialArgs ? { }
|
||||||
, pkgs ? builtins.getAttr system nixpkgs.outputs.legacyPackages
|
, 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";
|
assert nixpkgs.lib.versionAtLeast stateVersion "20.09";
|
||||||
|
|
||||||
import ./modules {
|
import ./modules {
|
||||||
inherit pkgs check extraSpecialArgs;
|
inherit pkgs lib check extraSpecialArgs;
|
||||||
configuration = { ... }: {
|
configuration = { ... }: {
|
||||||
imports = [ configuration ] ++ extraModules;
|
imports = [ configuration ] ++ extraModules;
|
||||||
home = { inherit homeDirectory stateVersion username; };
|
home = { inherit homeDirectory stateVersion username; };
|
||||||
|
|
|
@ -21,7 +21,7 @@ let
|
||||||
in
|
in
|
||||||
fold f res res.config.warnings;
|
fold f res res.config.warnings;
|
||||||
|
|
||||||
extendedLib = import ./lib/stdlib-extended.nix pkgs.lib;
|
extendedLib = import ./lib/stdlib-extended.nix lib;
|
||||||
|
|
||||||
hmModules =
|
hmModules =
|
||||||
import ./modules.nix {
|
import ./modules.nix {
|
||||||
|
|
Loading…
Reference in a new issue