I decided I hate with;
This commit is contained in:
parent
cddc4d6b1e
commit
9480e94ab7
1 changed files with 5 additions and 5 deletions
|
@ -1,11 +1,11 @@
|
||||||
{ lib, ... }:
|
{ lib, ... }:
|
||||||
|
|
||||||
with builtins; with lib; let
|
let
|
||||||
dirEntries = removeAttrs (readDir ./.) [ "default.nix" ];
|
dirEntries = builtins.removeAttrs (builtins.readDir ./.) [ "default.nix" ];
|
||||||
moduleEntries = attrsets.filterAttrs (n: v: v == "regular") dirEntries;
|
moduleEntries = lib.attrsets.filterAttrs (n: v: v == "regular") dirEntries;
|
||||||
moduleNames = attrNames moduleEntries;
|
moduleNames = builtins.attrNames moduleEntries;
|
||||||
|
|
||||||
modulePaths = map (name: ./${name}) moduleNames;
|
modulePaths = builtins.map (name: ./${name}) moduleNames;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
imports = modulePaths;
|
imports = modulePaths;
|
||||||
|
|
Loading…
Reference in a new issue