mirror of
https://github.com/lightly-toasted/nix-config.git
synced 2025-12-10 03:49:44 +00:00
21 lines
429 B
Nix
21 lines
429 B
Nix
{ pkgs, ... }:
|
|
|
|
{
|
|
runit.services.restic-rest-server = {
|
|
script = ''
|
|
DATA_DIR=$HOME/services/restic-rest-server
|
|
mkdir -p "$DATA_DIR"
|
|
|
|
exec ${pkgs.restic-rest-server}/bin/rest-server \
|
|
--listen "$LISTEN_ADDR" \
|
|
--log - \
|
|
--no-auth \
|
|
--path $DATA_DIR \
|
|
--prometheus --prometheus-no-auth
|
|
'';
|
|
|
|
environment = {
|
|
LISTEN_ADDR = "127.0.0.1:9000";
|
|
};
|
|
};
|
|
}
|