mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 12:29:19 -08:00
Tree! It's the square hole for imports. That's right. It goes in the
square hole.
This commit is contained in:
parent
e716081479
commit
d0363ab8e9
22 changed files with 178 additions and 123 deletions
|
|
@ -1,6 +0,0 @@
|
|||
{ ... }: {
|
||||
imports = [
|
||||
./vim.nix
|
||||
./nvim.nix
|
||||
];
|
||||
}
|
||||
|
|
@ -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 = { };
|
||||
|
|
|
|||
|
|
@ -1,4 +0,0 @@
|
|||
{ ... }: {
|
||||
excludes = [
|
||||
];
|
||||
}
|
||||
|
|
@ -1,7 +0,0 @@
|
|||
{ ... }: {
|
||||
defaultOnly = true;
|
||||
recursiveInclude = true;
|
||||
includeFolders = {
|
||||
default.enable = true;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue