epyc: add garage node

This commit is contained in:
raito 2023-08-22 22:14:20 +02:00
parent 8d57383bc3
commit 5a1aa0eef7
2 changed files with 28 additions and 0 deletions

View file

@ -11,10 +11,12 @@ in
../modules/hypervisor.nix ../modules/hypervisor.nix
../modules/hydra/coordinator.nix ../modules/hydra/coordinator.nix
../modules/android-cache.nix ../modules/android-cache.nix
../modules/garage.nix
../modules/users/friends.nix ../modules/users/friends.nix
]; ];
networking.hostName = "epyc"; networking.hostName = "epyc";
boot.loader.systemd-boot.enable = true; boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true; boot.loader.efi.canTouchEfiVariables = true;

26
modules/garage.nix Normal file
View file

@ -0,0 +1,26 @@
{ pkgs, ... }: {
services.garage = {
enable = true;
package = pkgs.garage_0_8;
settings = {
db_engine = "lmdb";
block_size = (10 * 1024 * 1024); # 10MB
replication_mode = "none";
rpc_bind_addr = "[::1]:3901";
rpc_public_addr = "[::1]:3901";
rpc_secret = "f5b8ede0abe0a3d454d96e8b352e29a1d94522b64274d23b256d57482441ccc1";
s3_api = {
s3_region = "garage";
api_bind_addr = "[::1]:3900";
root_domain = ".s3.infra.newtype.fr";
};
s3_web = {
bind_addr = "[::1]:3902";
root_domain = ".web.infra.newtype.fr";
index = "index.html";
};
};
};
}