bring back garage (#1)
make it work with my fork Reviewed-on: cy/infra#1
This commit is contained in:
parent
0dd68a7d25
commit
2bdfb3e1a2
8 changed files with 109 additions and 0 deletions
18
hosts/chunk/garage.nix
Normal file
18
hosts/chunk/garage.nix
Normal file
|
@ -0,0 +1,18 @@
|
|||
{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;
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue