remove heater
This commit is contained in:
parent
f7a930c429
commit
23ad4ec25f
1 changed files with 11 additions and 13 deletions
|
@ -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 ]);
|
||||
|
|
Loading…
Reference in a new issue