summaryrefslogtreecommitdiffstats
path: root/makefu/2configs/home/ham/signal-rest/service.nix
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2021-05-15 13:13:13 +0200
committermakefu <github@syntax-fehler.de>2021-05-15 13:16:52 +0200
commit485807c22d20db9684612333cfda0b1fa63cf45a (patch)
treeba3870dcf3e1c4cfef7d6868683a459e6717dbe3 /makefu/2configs/home/ham/signal-rest/service.nix
parent7f515fd150eb7672f272ee61f581ae7e0ff76e86 (diff)
ma home/ham: add signal-rest, update automations
Diffstat (limited to 'makefu/2configs/home/ham/signal-rest/service.nix')
-rw-r--r--makefu/2configs/home/ham/signal-rest/service.nix18
1 files changed, 18 insertions, 0 deletions
diff --git a/makefu/2configs/home/ham/signal-rest/service.nix b/makefu/2configs/home/ham/signal-rest/service.nix
new file mode 100644
index 000000000..250a3596d
--- /dev/null
+++ b/makefu/2configs/home/ham/signal-rest/service.nix
@@ -0,0 +1,18 @@
+
+let
+ port = 8631;
+ image = "bbernhard/signal-cli-rest-api:latest";
+ config = "/var/lib/signal-cli-config";
+in {
+ systemd.tmpfiles.rules = [
+ "d ${config} docker docker - -"
+ ];
+ state = [ config ];
+ virtualisation.oci-containers.containers.signal-rest = {
+ image = image;
+ ports = [ "127.0.0.1:${toString port}:8080" ];
+ volumes = [
+ "${config}:/home/.local/share/signal-cli"
+ ];
+ };
+}