nixos-combined-flake/lib/mkHomeConfiguration.nix

21 lines
450 B
Nix

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