dotfiles/templates/typst/parts/default.nix

25 lines
434 B
Nix
Raw Normal View History

2025-03-29 23:08:26 -05:00
{
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;
};
}