working maybe?
This commit is contained in:
parent
87480ff832
commit
216904f679
70 changed files with 406 additions and 1528 deletions
|
@ -1,3 +1,28 @@
|
|||
_: {
|
||||
imports = [./nixvim.nix];
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
inputs,
|
||||
...
|
||||
}: let
|
||||
inherit (builtins) filter map toString elem;
|
||||
inherit (lib.filesystem) listFilesRecursive;
|
||||
inherit (lib.strings) hasSuffix;
|
||||
inherit (lib.lists) concatLists;
|
||||
|
||||
mkNixvimModule = {
|
||||
path,
|
||||
ignoredPaths ? [
|
||||
],
|
||||
}:
|
||||
filter (hasSuffix ".nix") (
|
||||
map toString (
|
||||
filter (path: path != ./default.nix && !elem path ignoredPaths) (listFilesRecursive path)
|
||||
)
|
||||
);
|
||||
in {
|
||||
imports = concatLists [
|
||||
[inputs.nixvim.nixosModules.nixvim]
|
||||
|
||||
(mkNixvimModule {path = ./.;})
|
||||
];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue