depot/modules/enterprise/default.nix
2023-09-03 01:11:49 +02:00

9 lines
346 B
Nix

{ config, depot, lib, ... }:
let
orgDomain = depot.lib.meta.domain;
host = depot.reflection;
in {
networking.domain = lib.mkDefault "${host.enterprise.subdomain or "services"}.${orgDomain}";
networking.search = [ config.networking.domain "search.${orgDomain}" ];
security.pki.certificates = [ (builtins.readFile ../../data/ca.crt) ];
}