configuration.nix: start systemd unit at boot

This commit is contained in:
coon 2025-09-30 20:23:57 +00:00
parent c798554bc4
commit 14b92ac966

View file

@ -23,6 +23,8 @@
]; ];
systemd.services.mixer-mqtt = { systemd.services.mixer-mqtt = {
wantedBy = [ "multi-user.target" ]; # auto-start at boot
serviceConfig = { 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"; 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"; Restart = "always";