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