blob: 3686bbb54486f0427840e76b0d30194e8869f04c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
{ config, lib, pkgs, ... }: let
removeTemplate =
# TODO don't remove during CI
lib.flip builtins.removeAttrs ["template"];
stockholm.lib = import ../lib/lib.nix { inherit lib; };
in {
config =
lib.mkMerge
(lib.mapAttrsToList
(name: _type: let
path = ./. + "/${name}";
in {
krebs = import path { inherit config lib stockholm; };
})
(removeTemplate
(lib.filterAttrs
(_name: type: type == "directory")
(builtins.readDir ./.))));
}
|