lib/images: change mkUser to mkHome

This commit is contained in:
Gabriel Arazas 2023-07-24 15:22:19 +08:00
parent cf92d4584c
commit 305c54996f
No known key found for this signature in database
GPG Key ID: ADE0C41DAB221FCC
2 changed files with 3 additions and 3 deletions

View File

@ -83,7 +83,7 @@
users = lib'.importTOML ./users.toml; users = lib'.importTOML ./users.toml;
# A set of image-related utilities for the flake outputs. # A set of image-related utilities for the flake outputs.
inherit (import ./lib/images.nix { inherit inputs; lib = lib'; }) mkHost mkUser mkImage; inherit (import ./lib/images.nix { inherit inputs; lib = lib'; }) mkHost mkHome mkImage;
# The order here is important(?). # The order here is important(?).
overlays = [ overlays = [
@ -347,7 +347,7 @@
path path
]; ];
in in
mkUser { mkHome {
inherit pkgs system extraModules extraArgs; inherit pkgs system extraModules extraArgs;
home-manager-channel = metadata.home-manager-channel or "home-manager"; home-manager-channel = metadata.home-manager-channel or "home-manager";
}) })

View File

@ -18,7 +18,7 @@
}; };
# A wrapper around the home-manager configuration function. # A wrapper around the home-manager configuration function.
mkUser = { pkgs, system, extraModules ? [ ], extraArgs ? { }, home-manager-channel ? "home-manager" }: mkHome = { pkgs, system, extraModules ? [ ], extraArgs ? { }, home-manager-channel ? "home-manager" }:
inputs."${home-manager-channel}".lib.homeManagerConfiguration { inputs."${home-manager-channel}".lib.homeManagerConfiguration {
inherit lib pkgs; inherit lib pkgs;
extraSpecialArgs = extraArgs; extraSpecialArgs = extraArgs;