mirror of https://gitlab.crans.org/nounous/nixos
optimisation
parent
5428ecded4
commit
326cfb1912
|
|
@ -2,9 +2,13 @@
|
|||
let
|
||||
cfg = config.services.forgejo;
|
||||
srv = cfg.settings.server;
|
||||
allGatusEndpoints = lib.concatMap
|
||||
(machine: machine.config.crans.gatus.endpoints or [ ])
|
||||
(lib.attrValues self.nixosConfigurations);
|
||||
otherHosts = lib.filterAttrs
|
||||
(name: _: name != "cransIso" && name != config.networking.hostName)
|
||||
self.nixosConfigurations;
|
||||
|
||||
allGatusEndpoints =
|
||||
config.crans.gatus.endpoints
|
||||
++ lib.concatMap (machine: machine.config.crans.gatus.endpoints or [ ]) (lib.attrValues otherHosts);
|
||||
in
|
||||
{
|
||||
services.openssh.settings.AcceptEnv = [ "GIT_PROTOCOL" ];
|
||||
|
|
|
|||
Loading…
Reference in New Issue