stockholm/makefu/2configs/home/ham/signal-rest/service.nix

19 lines
415 B
Nix
Raw Normal View History

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"
];
};
}