mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 10:58:02 +00:00
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:
parent
2cc6d2bcb6
commit
2e0a35a6cd
@ -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; })
|
||||||
|
Loading…
Reference in New Issue
Block a user