optimisation

perseverance
Lewis7Lewis 2026-11-10 17:26:59 +01:00
parent 5428ecded4
commit 326cfb1912
1 changed files with 7 additions and 3 deletions

View File

@ -2,9 +2,13 @@
let let
cfg = config.services.forgejo; cfg = config.services.forgejo;
srv = cfg.settings.server; srv = cfg.settings.server;
allGatusEndpoints = lib.concatMap otherHosts = lib.filterAttrs
(machine: machine.config.crans.gatus.endpoints or [ ]) (name: _: name != "cransIso" && name != config.networking.hostName)
(lib.attrValues self.nixosConfigurations); self.nixosConfigurations;
allGatusEndpoints =
config.crans.gatus.endpoints
++ lib.concatMap (machine: machine.config.crans.gatus.endpoints or [ ]) (lib.attrValues otherHosts);
in in
{ {
services.openssh.settings.AcceptEnv = [ "GIT_PROTOCOL" ]; services.openssh.settings.AcceptEnv = [ "GIT_PROTOCOL" ];