mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-22 12:34:24 +01:00
Remove meta.ports and meta.domains modules
This commit is contained in:
parent
d8abea9e18
commit
b487ec8ae7
31 changed files with 8 additions and 273 deletions
|
|
@ -70,11 +70,6 @@ in
|
|||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
meta = {
|
||||
domains.local = [ cfg.domain ];
|
||||
ports.tcp = [ cfg.port ];
|
||||
};
|
||||
|
||||
sops = {
|
||||
secrets."healthchecks/ping-key" = { };
|
||||
templates."gatus.env" = {
|
||||
|
|
@ -176,7 +171,10 @@ in
|
|||
let
|
||||
defaultEndpoints =
|
||||
self.nixosConfigurations
|
||||
|> lib.mapAttrs (_: host: host.config.meta.domains.local)
|
||||
|> lib.mapAttrs (
|
||||
_: host:
|
||||
host.config.custom.services.caddy.virtualHosts |> lib.attrValues |> lib.map (vHost: vHost.domain)
|
||||
)
|
||||
|> lib.concatMapAttrs (
|
||||
hostName: domains:
|
||||
domains
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue