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:
Naïm Favier 2022-06-16 12:21:13 +02:00 committed by Robert Helgesson
parent a0e7ffe7aa
commit 2ff38c646f
No known key found for this signature in database
GPG key ID: 36BDAA14C2797E89

View file

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