aboutsummaryrefslogtreecommitdiff
path: root/nixos/modules/default.nix
blob: 9d707e93e3ec12928877f5c4340c9bcd19922611 (plain)
1
2
3
4
5
6
7
8
9
self: let
  inherit (builtins) readDir;
  inherit (self.inputs.nixpkgs.lib) filterAttrs nameValuePair mapAttrs' hasSuffix removeSuffix;
in
  mapAttrs'
  (n: v: nameValuePair "cynerd-${removeSuffix ".nix" n}" (import (./. + "/${n}")))
  (filterAttrs
    (n: v: v == "regular" && hasSuffix ".nix" n && n != "default.nix")
    (readDir ./.))