mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-03-22 17:49:07 +01:00
Pass allHosts as a special arg to the host configs
This commit is contained in:
parent
cb4c268550
commit
f27479b861
7 changed files with 16 additions and 11 deletions
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
config,
|
||||
self,
|
||||
lib,
|
||||
allHosts,
|
||||
...
|
||||
}:
|
||||
let
|
||||
|
|
@ -173,7 +173,7 @@ in
|
|||
web-services.gatus.endpoints =
|
||||
let
|
||||
defaultEndpoints =
|
||||
self.allHosts
|
||||
allHosts
|
||||
|> lib.mapAttrs (
|
||||
_: host:
|
||||
host.config.custom.services.caddy.virtualHosts |> lib.attrValues |> lib.map (vHost: vHost.domain)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue