configuration.nix: hacky execution of mqtt_client.py via systemd
This commit is contained in:
parent
772dee8cd9
commit
d3c7886552
1 changed files with 5 additions and 0 deletions
|
@ -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";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue