nixfiles/common/home.nix
2023-11-12 14:45:15 -08:00

29 lines
482 B
Nix

{
config,
tree,
machine,
systemType,
std,
inputs,
...
}: let
inherit (std) list;
in {
home-manager = {
useGlobalPkgs = true;
useUserPackages = true;
sharedModules = with tree;
[
modules.home
]
++ list.optional (tree.${systemType} ? home) tree.${systemType}.home;
users.kat.imports = with tree.kat; [
common
];
extraSpecialArgs = {
inherit tree machine std inputs;
parent = config;
};
};
}