mirror of
https://codeberg.org/icewind/mitemp-prometheus.git
synced 2026-06-03 09:04:13 +02:00
fmt
This commit is contained in:
parent
8be6c6fe27
commit
95b0cb6c38
3 changed files with 43 additions and 42 deletions
|
|
@ -51,7 +51,8 @@ sensor_humidity{name="Sensor 2", mac="58:2d:34:39:1a:02"} 55.9
|
|||
|
||||
Licensed under either of
|
||||
|
||||
- Apache License, Version 2.0 ([LICENSE-APACHE](LICENSE-APACHE) or http://www.apache.org/licenses/LICENSE-2.0)
|
||||
- Apache License, Version 2.0 ([LICENSE-APACHE](LICENSE-APACHE) or
|
||||
http://www.apache.org/licenses/LICENSE-2.0)
|
||||
- MIT license ([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT)
|
||||
at your option.
|
||||
|
||||
|
|
|
|||
12
module.nix
12
module.nix
|
|
@ -1,7 +1,8 @@
|
|||
{ config
|
||||
, lib
|
||||
, pkgs
|
||||
, ...
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
with lib; let
|
||||
cfg = config.services.mitemp;
|
||||
|
|
@ -12,8 +13,7 @@ with lib; let
|
|||
inherit (cfg) socket;
|
||||
};
|
||||
};
|
||||
in
|
||||
{
|
||||
in {
|
||||
options.services.mitemp = {
|
||||
enable = mkEnableOption "mitemp";
|
||||
|
||||
|
|
|
|||
14
package.nix
14
package.nix
|
|
@ -1,10 +1,10 @@
|
|||
{ stdenv
|
||||
, rustPlatform
|
||||
, lib
|
||||
, pkg-config
|
||||
, dbus
|
||||
}:
|
||||
let
|
||||
{
|
||||
stdenv,
|
||||
rustPlatform,
|
||||
lib,
|
||||
pkg-config,
|
||||
dbus,
|
||||
}: let
|
||||
inherit (lib.sources) sourceByRegex;
|
||||
inherit (builtins) fromTOML readFile;
|
||||
src = sourceByRegex ./. ["Cargo.*" "(src)(/.*)?"];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue