summaryrefslogtreecommitdiffstats
path: root/shared/2configs/shack/muell_caller.nix
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2017-06-01 10:13:14 +0200
committermakefu <github@syntax-fehler.de>2017-06-01 10:13:14 +0200
commit1c1314f667730264c91f75d50f679ef87c8a6e3a (patch)
treeff58ef35260dc46391e81841059b5321f23ca1cd /shared/2configs/shack/muell_caller.nix
parentbb4c3d978a59f6efa5e6084afd55cd3e4f708a56 (diff)
s 2 muell_caller: fix derivation
Diffstat (limited to 'shared/2configs/shack/muell_caller.nix')
-rw-r--r--shared/2configs/shack/muell_caller.nix8
1 files changed, 4 insertions, 4 deletions
diff --git a/shared/2configs/shack/muell_caller.nix b/shared/2configs/shack/muell_caller.nix
index 613ed2e4f..2d8d78e33 100644
--- a/shared/2configs/shack/muell_caller.nix
+++ b/shared/2configs/shack/muell_caller.nix
@@ -7,12 +7,12 @@ let
src = pkgs.fetchgit {
url = "https://github.com/shackspace/muell_caller/";
rev = "bbd4009";
- sha256 = "06xaa1j6sfyvvdxg0366fcslhn478anqh4m5hljyf0z29knvz7pg";
+ sha256 = "1bfnfl2vdh0p5wzyz5p48qh04vvsg2445avg86fzhzragx25fqv0";
};
buildInputs = [
(pkgs.python3.withPackages (pythonPackages: with pythonPackages; [
docopt
- requests
+ requests2
paramiko
python
]))
@@ -23,12 +23,12 @@ let
};
cfg = "${toString <secrets>}/tell.json";
in {
- systemd.services.mqtt_sub = {
+ systemd.services.call_muell = {
description = "call muell";
wantedBy = [ "multi-user.target" ];
serviceConfig = {
User = "nobody"; # TODO separate user
- ExecStartPre = writeDash "call-muell-pre" ''
+ ExecStartPre = pkgs.writeDash "call-muell-pre" ''
cp ${cfg} /tmp/tell.json
chown nobody /tmp/tell.json
'';