nixos-combined-flake/lib/mkHomeConfiguration.nix

33 lines
610 B
Nix

{
nixpkgs,
inputs,
outputs,
flakeLib,
system,
vars,
overlays,
...
}: let
inherit (vars) username hostName;
profile = "${username}@${hostName}";
in {
${profile} = let
pkgs = flakeLib.mkPkgs {
inherit nixpkgs system overlays;
};
in
inputs.home-manager.lib.homeManagerConfiguration {
inherit pkgs;
extraSpecialArgs = {
inherit inputs outputs vars flakeLib;
inherit (inputs) nix-colors;
};
useGlobalPkgs = true;
useUserPackages = true;
modules = [
../profiles/home-manager/${profile}/home.nix
];
};
}