2024-07-06 13:39:24 +02:00
|
|
|
{
|
|
|
|
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 = ./.;})
|
|
|
|
];
|
2024-05-22 10:43:46 +02:00
|
|
|
}
|