co2_exporter: 2022-11-03 -> 2023-07-01
This commit is contained in:
parent
3df0ddcc27
commit
bc49acba64
|
@ -2,13 +2,13 @@
|
||||||
|
|
||||||
buildGoModule rec {
|
buildGoModule rec {
|
||||||
pname = "co2_exporter";
|
pname = "co2_exporter";
|
||||||
version = "unstable-2022-11-03";
|
version = "unstable-2023-07-01";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "sbruder"; # fork of am3o’s original version
|
owner = "sbruder"; # fork of am3o’s original version
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = "49ee376d257c0d92dcb819de6d67bb16d64b0339";
|
rev = "2e1e7af5af6d7e742d69278cf1cb25b08f770e25";
|
||||||
sha256 = "sha256-GJyIS6G0egSfk6LI38VqXg+E+WWQqJRmcvUU9Nk5MSo=";
|
sha256 = "sha256-64/a6NHzUvHgal30lt3k0vEQBvfEHRR7HZfUReKfO54=";
|
||||||
};
|
};
|
||||||
|
|
||||||
subPackages = [ "." ];
|
subPackages = [ "." ];
|
||||||
|
|
|
@ -30,7 +30,7 @@ in
|
||||||
environment = {
|
environment = {
|
||||||
CO2MONITOR_ADDRESS = cfg.listenAddress;
|
CO2MONITOR_ADDRESS = cfg.listenAddress;
|
||||||
} // (lib.optionalAttrs (!isNull cfg.device) {
|
} // (lib.optionalAttrs (!isNull cfg.device) {
|
||||||
CO2MOINITOR_DEVICE = cfg.device; # MOINITOR ✓
|
CO2MONITOR_DEVICE = cfg.device;
|
||||||
});
|
});
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
ExecStart = "${cfg.package}/bin/co2_exporter";
|
ExecStart = "${cfg.package}/bin/co2_exporter";
|
||||||
|
|
Loading…
Reference in a new issue