1 { system ? builtins.currentSystem
3 , pkgs ? import ../../.. { inherit system config; }
8 mkNode = package: { replicationMode, publicV6Address ? "::1" }: { pkgs, ... }: {
9 networking.interfaces.eth1.ipv6.addresses = [{
10 address = publicV6Address;
14 networking.firewall.allowedTCPPorts = [ 3901 3902 ];
20 replication_mode = replicationMode;
22 rpc_bind_addr = "[::]:3901";
23 rpc_public_addr = "[${publicV6Address}]:3901";
24 rpc_secret = "5c1915fa04d0b6739675c61bf5907eb0fe3d9c69850c83820f51b4d25d13868c";
28 api_bind_addr = "[::]:3900";
29 root_domain = ".s3.garage";
33 bind_addr = "[::]:3902";
34 root_domain = ".web.garage";
39 environment.systemPackages = [ pkgs.minio-client ];
41 # Garage requires at least 1GiB of free disk space to run.
42 virtualisation.diskSize = 2 * 1024;
46 (matrix: ver: matrix // {
47 "basic${toString ver}" = import ./basic.nix { inherit system pkgs ver; mkNode = mkNode pkgs."garage_${ver}"; };
48 "with-3node-replication${toString ver}" = import ./with-3node-replication.nix { inherit system pkgs ver; mkNode = mkNode pkgs."garage_${ver}"; };