19 lines
359 B
Nix
19 lines
359 B
Nix
|
{ lib, tree, ... }: with lib; let
|
||
|
wrapImports = imports: mapAttrs
|
||
|
(_: paths: { config, ... }: {
|
||
|
config.home-manager.users.chaoticryptidz = {
|
||
|
imports = singleton paths;
|
||
|
};
|
||
|
})
|
||
|
imports;
|
||
|
dirImports = wrapImports tree.prev;
|
||
|
in
|
||
|
dirImports // {
|
||
|
base = {
|
||
|
imports = [
|
||
|
dirImports.base
|
||
|
tree.prev.nixos
|
||
|
];
|
||
|
};
|
||
|
}
|