formatting

This commit is contained in:
Henri Dohmen 2025-03-22 12:28:50 +01:00
parent e3e370c893
commit 43860609e1
22 changed files with 230 additions and 154 deletions

View file

@ -1,16 +1,21 @@
{ lib, ... }:
let
walk = path:
let dir = builtins.readDir path;
in lib.mapAttrs' (name: value: {
walk =
path:
let
dir = builtins.readDir path;
in
lib.mapAttrs' (name: value: {
name = lib.removeSuffix ".nix" name;
value = if value == "regular" then
import (path + "/${name}")
else if value == "directory" then
walk (path + "/${name}")
else
builtins.throw "Cannot handle item of type ${value}";
value =
if value == "regular" then
import (path + "/${name}")
else if value == "directory" then
walk (path + "/${name}")
else
builtins.throw "Cannot handle item of type ${value}";
}) dir;
in walk ./.
in
walk ./.