summaryrefslogtreecommitdiffstats
path: root/makefu/2configs/home/ham
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2021-03-12 20:32:54 +0100
committermakefu <github@syntax-fehler.de>2021-03-12 20:32:54 +0100
commit46c9132c5a0b94427bee5ad8bf7d41f421d0208d (patch)
tree7cb457d05ca0c927ba58a64965074e050c5a92f7 /makefu/2configs/home/ham
parent1da12adf038e962af76228b3e53d2eb8c0d367b2 (diff)
ma ham/signal-rest: init
Diffstat (limited to 'makefu/2configs/home/ham')
-rw-r--r--makefu/2configs/home/ham/signal-rest/default.nix18
1 files changed, 18 insertions, 0 deletions
diff --git a/makefu/2configs/home/ham/signal-rest/default.nix b/makefu/2configs/home/ham/signal-rest/default.nix
new file mode 100644
index 000000000..250a3596d
--- /dev/null
+++ b/makefu/2configs/home/ham/signal-rest/default.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"
+ ];
+ };
+}