This commit is contained in:
Robin Appelman 2025-06-02 22:29:46 +02:00
commit 95b0cb6c38
3 changed files with 43 additions and 42 deletions

View file

@ -51,7 +51,8 @@ sensor_humidity{name="Sensor 2", mac="58:2d:34:39:1a:02"} 55.9
Licensed under either of 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) - MIT license ([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT)
at your option. at your option.

View file

@ -1,7 +1,8 @@
{ config {
, lib config,
, pkgs lib,
, ... pkgs,
...
}: }:
with lib; let with lib; let
cfg = config.services.mitemp; cfg = config.services.mitemp;
@ -12,8 +13,7 @@ with lib; let
inherit (cfg) socket; inherit (cfg) socket;
}; };
}; };
in in {
{
options.services.mitemp = { options.services.mitemp = {
enable = mkEnableOption "mitemp"; enable = mkEnableOption "mitemp";

View file

@ -1,10 +1,10 @@
{ stdenv {
, rustPlatform stdenv,
, lib rustPlatform,
, pkg-config lib,
, dbus pkg-config,
}: dbus,
let }: let
inherit (lib.sources) sourceByRegex; inherit (lib.sources) sourceByRegex;
inherit (builtins) fromTOML readFile; inherit (builtins) fromTOML readFile;
src = sourceByRegex ./. ["Cargo.*" "(src)(/.*)?"]; src = sourceByRegex ./. ["Cargo.*" "(src)(/.*)?"];