depot/cluster/import-services.nix
2022-08-03 23:04:19 +02:00

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);
}