mirror of
https://github.com/nix-community/home-manager.git
synced 2026-01-12 01:59:37 +08: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:
committed by
Robert Helgesson
parent
a0e7ffe7aa
commit
2ff38c646f
@@ -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";
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user