2022-12-04 13:45:43 +00:00
|
|
|
{
|
|
|
|
inputs,
|
|
|
|
tree,
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
...
|
|
|
|
}:
|
2021-12-26 14:07:09 +00:00
|
|
|
with lib; {
|
2021-12-20 23:48:26 +00:00
|
|
|
options.home-manager.users = mkOption {
|
|
|
|
type = types.attrsOf (types.submoduleWith {
|
2022-12-04 13:45:43 +00:00
|
|
|
modules = [];
|
2021-12-20 23:48:26 +00:00
|
|
|
specialArgs = {
|
|
|
|
inherit inputs tree;
|
|
|
|
nixos = config;
|
|
|
|
};
|
|
|
|
});
|
|
|
|
};
|
|
|
|
config = {
|
|
|
|
home-manager = {
|
|
|
|
useGlobalPkgs = true;
|
|
|
|
useUserPackages = true;
|
2022-12-04 13:45:43 +00:00
|
|
|
sharedModules = with tree; [modules.home.vscode-mod-module];
|
2021-12-20 23:48:26 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|