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;
|
|
|
|
backend = "s3c://${cluster.config.hostLinks.${hostName}.garageS3.tuple}/storage-${hostName}";
|
|
|
|
backendOptions = [ "no-ssl" ];
|
2023-08-23 01:57:35 +03:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|