mirror of
https://codeberg.org/icewind/taspromto.git
synced 2026-06-03 16:44:11 +02:00
add rflink32 support
This commit is contained in:
parent
f472cc54ef
commit
a5bb4b1d80
5 changed files with 140 additions and 1 deletions
|
|
@ -16,6 +16,12 @@ in {
|
|||
description = "Names for mitemp sensors";
|
||||
};
|
||||
|
||||
rfChannelNames = mkOption {
|
||||
type = types.attrs;
|
||||
default = {};
|
||||
description = "Names for 433mhz temperature sensors";
|
||||
};
|
||||
|
||||
port = mkOption {
|
||||
type = types.int;
|
||||
default = 3030;
|
||||
|
|
@ -40,6 +46,7 @@ in {
|
|||
environment = {
|
||||
PORT = toString cfg.port;
|
||||
MITEMP_NAMES = concatStringsSep "," (map (k: k + "=" + cfg.mitempNames."${k}") (attrNames cfg.mitempNames));
|
||||
RF_TEMP_NAMES = concatStringsSep "," (map (k: k + "=" + cfg.rfChannelNames."${k}") (attrNames cfg.rfChannelNames));
|
||||
};
|
||||
|
||||
serviceConfig = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue