2023-11-02 04:22:28 +02:00
|
|
|
{ config, cluster, ... }:
|
|
|
|
|
|
|
|
let
|
|
|
|
inherit (config.networking) hostName;
|
|
|
|
in
|
2023-08-23 01:57:35 +03:00
|
|
|
|
|
|
|
{
|
|
|
|
services.external-storage = {
|
|
|
|
fileSystems.external = {
|
|
|
|
mountpoint = "/srv/storage";
|
2023-11-02 04:22:28 +02:00
|
|
|
authFile = ./secrets/external-storage-auth-${hostName}.age;
|
2024-06-04 17:14:33 +03:00
|
|
|
backend = "s3c4://${cluster.config.links.garageS3.hostname}/storage-${hostName}";
|
2023-11-05 02:11:17 +02:00
|
|
|
backendOptions = [ "disable-expect100" ];
|
2023-08-23 01:57:35 +03:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|