website/parts/default.nix
2024-11-10 22:55:49 -06:00

20 lines
374 B
Nix
Executable file

{
perSystem = {
pkgs,
lib,
config,
self',
...
}: let
configPath = ./config;
devshellImports = let
files = builtins.attrNames (builtins.readDir configPath);
in
map
(name: configPath + "/${name}")
(builtins.filter (name: builtins.match ".*\\.nix$" name != null) files);
in {
imports = devshellImports;
};
}