grafana: bump influxdb LimitNOFILES

This commit is contained in:
Astro 2022-03-29 00:01:28 +02:00
parent 805e84f73f
commit 47e4c341d5
1 changed files with 13 additions and 8 deletions

View File

@ -61,14 +61,19 @@ in {
}]; }];
}; };
}; };
systemd.services = builtins.foldl' (services: service: systemd.services =
services // { builtins.foldl' (services: service:
"${service}".serviceConfig = { services // {
RestartSec = 60; "${service}".serviceConfig = {
Restart = "always"; RestartSec = 60;
}; Restart = "always";
} };
) {} restartServices; }
) {} restartServices
// {
# work around our slow storage that can't keep up
influxdb.serviceConfig.LimitNOFILES = 102400;
};
# TODO: workaround for https://github.com/NixOS/nixpkgs/pull/157931 # TODO: workaround for https://github.com/NixOS/nixpkgs/pull/157931
nixpkgs.config.permittedInsecurePackages = [ nixpkgs.config.permittedInsecurePackages = [