I decided I hate with;
parent
cddc4d6b1e
commit
9480e94ab7
|
@ -1,11 +1,11 @@
|
|||
{ lib, ... }:
|
||||
|
||||
with builtins; with lib; let
|
||||
dirEntries = removeAttrs (readDir ./.) [ "default.nix" ];
|
||||
moduleEntries = attrsets.filterAttrs (n: v: v == "regular") dirEntries;
|
||||
moduleNames = attrNames moduleEntries;
|
||||
let
|
||||
dirEntries = builtins.removeAttrs (builtins.readDir ./.) [ "default.nix" ];
|
||||
moduleEntries = lib.attrsets.filterAttrs (n: v: v == "regular") dirEntries;
|
||||
moduleNames = builtins.attrNames moduleEntries;
|
||||
|
||||
modulePaths = map (name: ./${name}) moduleNames;
|
||||
modulePaths = builtins.map (name: ./${name}) moduleNames;
|
||||
in
|
||||
{
|
||||
imports = modulePaths;
|
||||
|
|
Loading…
Reference in New Issue