29 lines
516 B
Nix
29 lines
516 B
Nix
{
|
|
flakeLib,
|
|
inputs,
|
|
outputs,
|
|
vars,
|
|
...
|
|
}: let
|
|
inherit (vars) username hostName;
|
|
profile = "${username}@${hostName}";
|
|
in {
|
|
imports = [
|
|
inputs.home-manager.nixosModules.home-manager
|
|
];
|
|
home-manager = {
|
|
extraSpecialArgs = {
|
|
inherit inputs outputs vars flakeLib;
|
|
inherit (inputs) nix-colors;
|
|
};
|
|
useGlobalPkgs = true;
|
|
useUserPackages = true;
|
|
|
|
users.${username} = {
|
|
imports = [
|
|
../../../profiles/home-manager/${profile}/home.nix
|
|
];
|
|
};
|
|
};
|
|
}
|