This commit is contained in:
Shelvacu
2025-08-01 22:21:33 -07:00
committed by Shelvacu on fw
parent 027f05c9cb
commit 6df5ad6476
4 changed files with 8 additions and 1 deletions

View File

@@ -22,6 +22,10 @@ in
dataDir = lib.mkOption {
type = lib.types.path;
};
capacity = lib.mkOption {
type = lib.types.str;
default = "2T";
};
sockets = vaculib.mkOutOptions sockets;
};
config = {
@@ -47,7 +51,7 @@ in
settings = {
data_dir = [ {
path = cfg.dataDir;
# capacity = "2T";
inherit (cfg) capacity;
}];
replication_factor = 3;
consistency_mode = "consistent";

View File

@@ -7,6 +7,7 @@
vacu.garage = {
rpcPort = 9060;
dataDir = "/propdata/garage-data";
capacity = "10T";
};
users.users.${config.services.caddy.user}.extraGroups = [ "garage-sockets" ];

View File

@@ -8,6 +8,7 @@
# vacu.garage = {
# rpcPort = 26950;
# dataDirectory = "/propdata/garage-data";
# capacity = "2.5T";
# };
#
# users.users.${config.services.caddy.user}.extraGroups = [ "garage-sockets" ];

View File

@@ -12,6 +12,7 @@
vacu.garage = {
rpcPort = 1978;
dataDir = "/trip/garage-data";
capacity = "10T";
};
vacu.proxiedServices.s3-garage = {
unixSocket = config.vacu.garage.sockets.s3;