mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 16:21:34 +01:00
restic: Add dedicated paths option
This commit is contained in:
parent
2761fc8953
commit
7e25a91691
7 changed files with 19 additions and 17 deletions
|
|
@ -14,6 +14,10 @@ in
|
|||
type = lib.types.nullOr lib.types.nonEmptyStr;
|
||||
default = null;
|
||||
};
|
||||
paths = lib.mkOption {
|
||||
type = lib.types.listOf lib.types.path;
|
||||
default = [ ];
|
||||
};
|
||||
extraConfig = lib.mkOption {
|
||||
type = lib.types.attrsOf lib.types.anything;
|
||||
default = { };
|
||||
|
|
@ -47,6 +51,7 @@ in
|
|||
name: value:
|
||||
lib.mkMerge [
|
||||
{
|
||||
inherit (value) paths;
|
||||
initialize = true;
|
||||
repository = "s3:https://s3.eu-central-003.backblazeb2.com/stork-atlas/${name}";
|
||||
environmentFile = config.sops.templates."restic/environment".path;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue