31 lines
546 B
Nix
31 lines
546 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
|
|
];
|
|
};
|
|
backupFileExtension = "backup";
|
|
};
|
|
}
|