Tree! It's the square hole for imports. That's right. It goes in the

square hole.
This commit is contained in:
kat witch 2021-11-20 23:36:45 +00:00
parent e716081479
commit d0363ab8e9
No known key found for this signature in database
GPG key ID: 1B477797DCA5EC72
22 changed files with 178 additions and 123 deletions

View file

@ -1,7 +0,0 @@
{ ... }: {
defaultOnly = true;
includeFolders = {
enable = true;
default.enable = true;
};
}

View file

@ -1,7 +0,0 @@
{ ... }: {
defaultOnly = true;
includeFolders = {
enable = true;
default.enable = true;
};
}

View file

@ -1,6 +0,0 @@
{ ... }: {
imports = [
./vim.nix
./nvim.nix
];
}

View file

@ -1,19 +1,19 @@
{ lib, tree, ... }: with lib; let
wrapImports = imports: mapAttrs
(name: paths: { config, ... }: {
(_: paths: { config, ... }: {
config.home-manager.users.kat = {
imports = if isAttrs paths then attrValues paths else singleton paths;
imports = singleton paths;
};
})
imports;
dirImports = wrapImports tree.dirs;
serviceImports = wrapImports tree.dirs.services;
dirImports = wrapImports tree.prev;
serviceImports = wrapImports tree.prev.services;
in
(removeAttrs dirImports (singleton "base")) // {
dirImports // {
base = {
imports = [
dirImports.base
tree.files.nixos
tree.prev.nixos
];
};
server = { };

View file

@ -1,4 +0,0 @@
{ ... }: {
excludes = [
];
}

View file

@ -1,7 +0,0 @@
{ ... }: {
defaultOnly = true;
recursiveInclude = true;
includeFolders = {
default.enable = true;
};
}