From 9f056ba31884401df9263472e90cc10e3480e116 Mon Sep 17 00:00:00 2001 From: Max Date: Sat, 3 Aug 2024 02:45:19 +0200 Subject: [PATCH] cluster/services/storage: implement s3ql key format --- cluster/services/storage/garage-options.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/cluster/services/storage/garage-options.nix b/cluster/services/storage/garage-options.nix index a423d25..a8ab84b 100644 --- a/cluster/services/storage/garage-options.nix +++ b/cluster/services/storage/garage-options.nix @@ -118,7 +118,7 @@ in }; format = mkOption { description = "Locksmith secret format."; - type = enum [ "files" "aws" "envFile" ]; + type = enum [ "files" "aws" "envFile" "s3ql" ]; default = "files"; }; owner = mkOption { @@ -291,6 +291,12 @@ in AWS_ACCESS_KEY_ID=@@GARAGE_KEY_ID@@ AWS_SECRET_ACCESS_KEY=@@GARAGE_SECRET_KEY@@ ''; + s3ql = '' + [s3c] + storage-url: s3c4:// + backend-login: @@GARAGE_KEY_ID@@ + backend-password: @@GARAGE_SECRET_KEY@@ + ''; }.${kCfg.locksmith.format}; in { ${key} = common // {