dotfiles/parts/default.nix

21 lines
374 B
Nix
Raw Normal View History

2024-10-06 15:25:05 -05:00
{
perSystem = {
pkgs,
lib,
config,
self',
...
2024-11-10 01:29:37 -06:00
}: 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;
2024-10-06 15:25:05 -05:00
};
}