summaryrefslogtreecommitdiffstats
path: root/makefu/2configs/home/ham/signal-rest/service.nix
blob: 250a3596d91dcd88d0271e8a4321756193706406 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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"
    ];
  };
}