depot/cluster/import-services.nix

10 lines
230 B
Nix
Raw Permalink Normal View History

2022-06-23 21:13:28 +03:00
{ 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);
}