lib/images: add pkgs attribute for mkUser

The nixpkgs is now assumed from the outside. This allows for the config
to have more control with the nixpkgs to be imported with the
home-manager configuration.
This commit is contained in:
Gabriel Arazas 2023-07-14 20:01:30 +08:00
parent 2cc6d2bcb6
commit 2e0a35a6cd
No known key found for this signature in database
GPG Key ID: ADE0C41DAB221FCC

View File

@ -21,11 +21,10 @@ in
}; };
# A wrapper around the home-manager configuration function. # A wrapper around the home-manager configuration function.
mkUser = { system, extraModules ? [ ], extraArgs ? { }, home-manager-channel ? "home-manager", nixpkgs-channel ? "nixpkgs" }: mkUser = { pkgs, system, extraModules ? [ ], extraArgs ? { }, home-manager-channel ? "home-manager" }:
inputs."${home-manager-channel}".lib.homeManagerConfiguration { inputs."${home-manager-channel}".lib.homeManagerConfiguration {
inherit lib; inherit lib pkgs;
extraSpecialArgs = extraArgs; extraSpecialArgs = extraArgs;
pkgs = import inputs."${nixpkgs-channel}" { inherit system; };
modules = modules =
# Importing our custom home-manager modules. # Importing our custom home-manager modules.
(import ../modules/home-manager { inherit lib; isInternal = true; }) (import ../modules/home-manager { inherit lib; isInternal = true; })