The Simulacrum: Stage 6 #114
1 changed files with 7 additions and 1 deletions
|
@ -118,7 +118,7 @@ in
|
||||||
};
|
};
|
||||||
format = mkOption {
|
format = mkOption {
|
||||||
description = "Locksmith secret format.";
|
description = "Locksmith secret format.";
|
||||||
type = enum [ "files" "aws" "envFile" ];
|
type = enum [ "files" "aws" "envFile" "s3ql" ];
|
||||||
default = "files";
|
default = "files";
|
||||||
};
|
};
|
||||||
owner = mkOption {
|
owner = mkOption {
|
||||||
|
@ -291,6 +291,12 @@ in
|
||||||
AWS_ACCESS_KEY_ID=@@GARAGE_KEY_ID@@
|
AWS_ACCESS_KEY_ID=@@GARAGE_KEY_ID@@
|
||||||
AWS_SECRET_ACCESS_KEY=@@GARAGE_SECRET_KEY@@
|
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};
|
}.${kCfg.locksmith.format};
|
||||||
in {
|
in {
|
||||||
${key} = common // {
|
${key} = common // {
|
||||||
|
|
Loading…
Reference in a new issue