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 = { };
|
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 ]);
|
||||||
|
|
Loading…
Reference in a new issue