Compare commits

..

4 commits

2 changed files with 8 additions and 0 deletions

View file

@ -22,6 +22,14 @@
(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";
}

0
mqtt_client.py Normal file → Executable file
View file