mirror of
https://github.com/kmein/niveum
synced 2026-03-16 10:11:08 +01:00
fix(traadfri): module scripts
This commit is contained in:
@@ -30,10 +30,10 @@ in {
|
||||
${traadfri}/bin/traadfri $@
|
||||
'')
|
||||
] ++ lib.mapAttrsToList (name: value: pkgs.writers.writeDashBin "traadfri-${name}" ''
|
||||
exec traadfri --target Room ${toString value}
|
||||
exec traadfri --target Room ${toString value} "$@"
|
||||
'') cfg.rooms
|
||||
++ lib.mapAttrsToList (name: value: pkgs.writers.writeDashBin "traadfri-${name}" ''
|
||||
exec traadfri --target Bulb ${toString value}
|
||||
exec traadfri --target Bulb ${toString value} "$@"
|
||||
'') cfg.bulbs;
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user