From 46c9132c5a0b94427bee5ad8bf7d41f421d0208d Mon Sep 17 00:00:00 2001 From: makefu Date: Fri, 12 Mar 2021 20:32:54 +0100 Subject: ma ham/signal-rest: init --- makefu/2configs/home/ham/signal-rest/default.nix | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 makefu/2configs/home/ham/signal-rest/default.nix (limited to 'makefu/2configs/home') 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" + ]; + }; +} -- cgit v1.2.3