nixfiles/home/default.nix
ChaotiCryptidz 8c7bdaf9f7 I'm Sorry
2021-12-20 23:48:26 +00:00

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
];
};
}