entities/entities.nix

19 lines
477 B
Nix

{ helper-lib, lib, ... }:
with lib;
let
inherit (helper-lib.fs) import-by-basename;
withDefaults = defaults: mapAttrs (_: opts: defaults // opts);
in {
domains = import-by-basename ./domains;
hosts = withDefaults {
nixos-system = true;
fudo-system = true;
profile = "server";
hardened = false;
} (import-by-basename ./hosts);
nexus.domains = import-by-basename ./nexus;
sites = import-by-basename ./sites;
zones = import-by-basename ./zones;
}