Allows us to track ambient temperature changes and estimate the temperature delta between the server room and exterior temperature. We should be able to predict when we would need to stop the machines due to excesive temperature as summer approaches. Reviewed-by: Aleix Boné <abonerib@bsc.es>
18 lines
425 B
Nix
18 lines
425 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
with lib;
|
|
|
|
{
|
|
systemd.services."prometheus-meteocat-exporter" = {
|
|
wantedBy = [ "multi-user.target" ];
|
|
after = [ "network.target" ];
|
|
serviceConfig = {
|
|
Restart = mkDefault "always";
|
|
PrivateTmp = mkDefault true;
|
|
WorkingDirectory = mkDefault "/tmp";
|
|
DynamicUser = mkDefault true;
|
|
ExecStart = "${pkgs.meteocat-exporter}/bin/meteocat-exporter";
|
|
};
|
|
};
|
|
}
|