10 lines
230 B
Nix
10 lines
230 B
Nix
{ lib, ... }:
|
|
|
|
let
|
|
svcs' = builtins.readDir ./services;
|
|
svcs = lib.filterAttrs (_: type: type == "directory") svcs';
|
|
loadService = ent: import ./services/${ent};
|
|
in {
|
|
imports = map loadService (builtins.attrNames svcs);
|
|
}
|