reNixos/viola/services/garage.nix
s0me1newithhand7s 793b14918a viola: upstream
Signed-off-by: s0me1newithhand7s <git+me@hand7s.org>
2026-03-25 18:48:47 +03:00

33 lines
721 B
Nix

{pkgs, ...}: {
services = {
garage = {
enable = true;
package = pkgs.garage;
logLevel = "error";
settings = {
replication_factor = 1;
consistency_mode = "consistent";
use_local_tz = true;
rpc_bind_addr = "[::]:3901";
rpc_public_addr = "127.0.0.1:3901";
"s3_api" = {
s3_region = "garage";
api_bind_addr = "[::]:3900";
root_domain = ".s3.garage.localhost";
};
"s3_web" = {
bind_addr = "[::]:3902";
root_domain = ".web.garage.localhost";
index = "index.html";
};
"k2v_api" = {
api_bind_addr = "[::]:3904";
};
};
};
};
}