configuration.nix: auto restart script on crash

This commit is contained in:
coon 2025-09-30 19:22:20 +00:00
parent 4bd5f738e7
commit d3b5bfd6cf

View file

@ -25,6 +25,8 @@
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";
};
};