mirror of
https://github.com/nix-community/home-manager
synced 2024-11-27 05:29:46 +01:00
flake: make pkgs required in homeManagerConfiguration
Prevents Home Manager from pinning Nixpkgs on behalf of users, see https://github.com/nix-community/home-manager/pull/2971#discussion_r898556798
This commit is contained in:
parent
a0e7ffe7aa
commit
2ff38c646f
1 changed files with 1 additions and 2 deletions
|
@ -30,8 +30,7 @@
|
||||||
lib = {
|
lib = {
|
||||||
hm = import ./modules/lib { lib = nixpkgs.lib; };
|
hm = import ./modules/lib { lib = nixpkgs.lib; };
|
||||||
homeManagerConfiguration = { configuration, system, homeDirectory
|
homeManagerConfiguration = { configuration, system, homeDirectory
|
||||||
, username, extraModules ? [ ], extraSpecialArgs ? { }
|
, username, extraModules ? [ ], extraSpecialArgs ? { }, pkgs
|
||||||
, pkgs ? builtins.getAttr system nixpkgs.outputs.legacyPackages
|
|
||||||
, lib ? pkgs.lib, 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";
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue