1
0
Fork 0
forked from pub-solar/infra

backups: add environmentFile option

This commit is contained in:
teutat3s 2024-08-28 16:59:06 +02:00
parent 1d92ef53ca
commit c0a3d90d63
Signed by untrusted user: teutat3s
GPG key ID: 4FA1D3FA524F22C1

View file

@ -39,6 +39,15 @@ in
example = "/etc/nixos/restic-password";
};
environmentFile = mkOption {
type = with types; nullOr str;
default = null;
description = ''
Read repository secrets as environment variables from a file.
'';
example = "/etc/nixos/restic-env";
};
repository = mkOption {
type = with types; nullOr str;
default = null;
@ -57,6 +66,7 @@ in
remotebackup = {
repository = "sftp:backup@host:/backups/home";
passwordFile = "/etc/nixos/secrets/restic-password";
environmentFile = "/etc/nixos/secrets/restic-env";
};
};
};