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