From 2ff38c646f6e22e20f703ad1940a5e5e9faa252b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Na=C3=AFm=20Favier?= Date: Thu, 16 Jun 2022 12:21:13 +0200 Subject: [PATCH] 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 --- flake.nix | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/flake.nix b/flake.nix index 1187ad80..5de810a3 100644 --- a/flake.nix +++ b/flake.nix @@ -30,8 +30,7 @@ lib = { hm = import ./modules/lib { lib = nixpkgs.lib; }; homeManagerConfiguration = { configuration, system, homeDirectory - , username, extraModules ? [ ], extraSpecialArgs ? { } - , pkgs ? builtins.getAttr system nixpkgs.outputs.legacyPackages + , username, extraModules ? [ ], extraSpecialArgs ? { }, pkgs , lib ? pkgs.lib, check ? true, stateVersion ? "20.09" }@args: assert nixpkgs.lib.versionAtLeast stateVersion "20.09";