Compare commits
4 commits
772dee8cd9
...
d3b5bfd6cf
Author | SHA1 | Date | |
---|---|---|---|
d3b5bfd6cf | |||
4bd5f738e7 | |||
7c2d8e806a | |||
d3c7886552 |
2 changed files with 8 additions and 0 deletions
|
@ -22,6 +22,14 @@
|
||||||
(python3.withPackages (p: with p; [paho-mqtt mido]))
|
(python3.withPackages (p: with p; [paho-mqtt mido]))
|
||||||
];
|
];
|
||||||
|
|
||||||
|
systemd.services.mixer-mqtt = {
|
||||||
|
serviceConfig = {
|
||||||
|
ExecStart = "${pkgs.python3.withPackages (p: with p; [ paho-mqtt mido ])}/bin/python3 /root/mixer-rpc/mqtt_client.py 172.23.42.20 172.23.42.25";
|
||||||
|
Restart = "always";
|
||||||
|
RestartSec = 5;
|
||||||
|
Environment = "PYTHONUNBUFFERED=1";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
system.stateVersion = "25.05";
|
system.stateVersion = "25.05";
|
||||||
}
|
}
|
||||||
|
|
0
mqtt_client.py
Normal file → Executable file
0
mqtt_client.py
Normal file → Executable file
Loading…
Add table
Add a link
Reference in a new issue