remove heater

This commit is contained in:
Ingolf Wagner 2021-03-24 06:04:48 +01:00
parent f7a930c429
commit 23ad4ec25f
No known key found for this signature in database
GPG key ID: 76BF5F1928B9618B

View file

@ -2,25 +2,23 @@
users.users.heater-control = { };
systemd.services.heater-control = {
enable = true;
wantedBy = [ "multi-user.target" ];
serviceConfig = { User = "heater-control"; };
script =
let myPython = pkgs.python3.withPackages (ps: with ps; [ paho-mqtt ]);
in ''
cd ${<mqtt>}
${myPython}/bin/python heater.py
'';
};
#systemd.services.heater-control = {
# enable = true;
# wantedBy = [ "multi-user.target" ];
# serviceConfig = { User = "heater-control"; };
# script =
# let myPython = pkgs.python3.withPackages (ps: with ps; [ paho-mqtt ]);
# in ''
# cd ${<mqtt>}
# ${myPython}/bin/python heater.py
# '';
#};
users.users.fyrtur-control = { };
systemd.services.fyrtur-control = {
enable = true;
wantedBy = [ "multi-user.target" ];
serviceConfig = { User = "fyrtur-control"; };
script =
let myPython = pkgs.python3.withPackages (ps: with ps; [ paho-mqtt ]);