aboutsummaryrefslogtreecommitdiff
path: root/nixos/modules/default.nix
blob: ea2acb3345544059edce8274f824f250a259f2a5 (plain)
1
2
3
4
5
6
7
8
9
10
{lib}: let
  inherit (builtins) readDir;
  inherit (lib) filterAttrs hasSuffix mapAttrs' nameValuePair removeSuffix;
in
  mapAttrs'
  (fname: _: nameValuePair (removeSuffix ".nix" fname) (./. + ("/" + fname)))
  (filterAttrs (
    n: v:
      v == "regular" && n != "default.nix" && hasSuffix ".nix" n
  ) (readDir ./.))