configuration.nix: hacky execution of mqtt_client.py via systemd

This commit is contained in:
coon 2025-09-30 19:09:48 +00:00
parent 772dee8cd9
commit d3c7886552

View file

@ -22,6 +22,11 @@
(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 -u /root/mixer-rpc/mqtt_client.py 172.23.42.20 172.23.42.25";
};
};
system.stateVersion = "25.05"; system.stateVersion = "25.05";
} }