add rflink32 support

This commit is contained in:
Robin Appelman 2024-05-07 22:37:20 +02:00
commit a5bb4b1d80
5 changed files with 140 additions and 1 deletions

View file

@ -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 = {