nixfiles/home/default.nix

19 lines
359 B
Nix
Raw Normal View History

2021-12-20 23:48:26 +00:00
{ 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
];
};
}