summaryrefslogtreecommitdiffstats
path: root/krebs/2configs/shack
diff options
context:
space:
mode:
authorlassulus <lassulus@lassul.us>2018-05-03 18:59:31 +0200
committerlassulus <lassulus@lassul.us>2018-05-03 18:59:31 +0200
commite6794ca8821fd37bf0fcd2966b9927c14e92d180 (patch)
tree2450ec0d380a4ea1b0f9cc677e4ee5095efc98c2 /krebs/2configs/shack
parent66b55d0a27327b5f0f6adf675a779f8d09e9c703 (diff)
parentdd71e3f657fb8680a83a47cc2e9bc7a0478240be (diff)
Merge remote-tracking branch 'gum/master'
Diffstat (limited to 'krebs/2configs/shack')
-rw-r--r--krebs/2configs/shack/worlddomination.nix13
1 files changed, 13 insertions, 0 deletions
diff --git a/krebs/2configs/shack/worlddomination.nix b/krebs/2configs/shack/worlddomination.nix
index 838c1958e..44176a341 100644
--- a/krebs/2configs/shack/worlddomination.nix
+++ b/krebs/2configs/shack/worlddomination.nix
@@ -75,6 +75,7 @@ let
};
wdpath = "/usr/worlddomination/wd.lst";
esphost = "10.42.24.7"; # esp8266
+ afrihost = "10.42.25.201"; # africa
timeout = 10; # minutes
in {
systemd.services.worlddomination = {
@@ -88,4 +89,16 @@ in {
PermissionsStartOnly = true;
};
};
+
+ systemd.services.worlddomination-africa = {
+ description = "run worlddomination africa";
+ wantedBy = [ "multi-user.target" ];
+ serviceConfig = {
+ User = "nobody"; # TODO separate user
+ ExecStart = "${pkg}/bin/push-led ${afrihost} ${pkg}/${wdpath} loop ${toString timeout}";
+ Restart = "always";
+ PrivateTmp = true;
+ PermissionsStartOnly = true;
+ };
+ };
}