19 lines
441 B
Nix
19 lines
441 B
Nix
{ config, pkgs, ... }:
|
|
{
|
|
services.garage = {
|
|
enable = true;
|
|
package = pkgs.garage;
|
|
settings = {
|
|
data_dir = "/mnt/garage";
|
|
s3_api = {
|
|
s3_region = "earth";
|
|
api_bind_addr = "[::]:3900";
|
|
};
|
|
admin.api_bind_addr = "[::]:3903";
|
|
rpc_bind_addr = "[::]:3901";
|
|
replication_factor = 1;
|
|
db_engine = "lmdb";
|
|
};
|
|
environmentFile = config.sops.secrets."garage/env".path;
|
|
};
|
|
}
|