summaryrefslogtreecommitdiffstats
path: root/makefu/2configs/logging/external/aralast.nix
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2017-05-25 23:19:36 +0200
committermakefu <github@syntax-fehler.de>2017-05-25 23:19:36 +0200
commit0c92dd719a46139523f6e353c354871bd78024a4 (patch)
treeb57b178de784847d9e0748a748412178762d621b /makefu/2configs/logging/external/aralast.nix
parent243d33abe350a1a7b41a7f2c6106fd5b92bde4c8 (diff)
m 2: rename stats and share
Diffstat (limited to 'makefu/2configs/logging/external/aralast.nix')
-rw-r--r--makefu/2configs/logging/external/aralast.nix38
1 files changed, 0 insertions, 38 deletions
diff --git a/makefu/2configs/logging/external/aralast.nix b/makefu/2configs/logging/external/aralast.nix
deleted file mode 100644
index c335db454..000000000
--- a/makefu/2configs/logging/external/aralast.nix
+++ /dev/null
@@ -1,38 +0,0 @@
-{ config, lib, pkgs, ... }:
-
-with import <stockholm/lib>;
-let
- pkg = pkgs.stdenv.mkDerivation {
- name = "aralast-master";
- src = pkgs.fetchFromGitHub {
- owner = "makefu";
- repo = "aralast";
- rev = "7121598";
- sha256 = "0vw027c698h9b69ksid5p3pji9960hd7n9xi4arrax0vfkwryb4m";
- };
- installPhase = ''
- install -m755 -D aralast.sh $out/bin/aralast
- '';
- };
-in {
- systemd.services.aralast = {
- description = "periodically fetch aramark";
- path = [
- pkgs.curl
- pkgs.gnugrep
- pkgs.gnused
- ];
- wantedBy = [ "multi-user.target" ];
- environment = {
- INFLUX_HOST = "localhost";
- INFLUX_PORT = "8086";
- };
- # every 10 seconds when the cantina is open
- startAt = "Mon,Tue,Wed,Thu,Fri *-*-* 6,7,8,9,10,11,12,13,14,15:*:0/10";
- serviceConfig = {
- User = "nobody";
- ExecStart = "${pkg}/bin/aralast";
- PrivateTmp = true;
- };
- };
-}