28 lines
536 B
Nix
28 lines
536 B
Nix
moduleInputs @ {
|
|
nixpkgs,
|
|
inputs,
|
|
flakeLib,
|
|
system,
|
|
vars,
|
|
overlays,
|
|
...
|
|
}: let
|
|
inherit (vars) username hostName;
|
|
profile = "${username}@${hostName}";
|
|
in {
|
|
${profile} = let
|
|
config = flakeLib.mkHomeManagerDefaults moduleInputs;
|
|
pkgs = flakeLib.mkPkgs {
|
|
inherit nixpkgs system overlays;
|
|
};
|
|
in
|
|
inputs.home-manager.lib.homeManagerConfiguration {
|
|
inherit pkgs;
|
|
inherit (config) extraSpecialArgs;
|
|
|
|
modules = [
|
|
../profiles/home-manager/${profile}/home.nix
|
|
];
|
|
};
|
|
}
|