Files
nixos-config/overlays/default.nix
Christoph Schmatzler 298bbfae53 tabs
Signed-off-by: Christoph Schmatzler <christoph@schmatzler.com>
2025-11-02 11:36:27 +00:00

19 lines
483 B
Nix

{inputs}: let
dir = builtins.readDir ./.;
overlayNames =
builtins.sort builtins.lessThan (builtins.filter (
name:
name
!= "default.nix"
&& dir.${name} == "regular"
&& builtins.match ".*\\.nix" name != null
) (builtins.attrNames dir));
overlayPath = name:
builtins.toPath "${builtins.toString ./.}/${name}";
loadOverlay = name: let
overlayModule = import (overlayPath name);
in
overlayModule {inherit inputs;};
in
map loadOverlay overlayNames