ma ham/signal-rest: init
This commit is contained in:
parent
1da12adf03
commit
46c9132c5a
18
makefu/2configs/home/ham/signal-rest/default.nix
Normal file
18
makefu/2configs/home/ham/signal-rest/default.nix
Normal file
@ -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"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user