fix(ops/restic): types.string -> types.str

I can never remember which is which.

Change-Id: I69b8235862b8c5b49030a74bfca25aaa113273b7
Reviewed-on: https://cl.tvl.fyi/c/depot/+/3582
Tested-by: BuildkiteCI
Reviewed-by: sterni <sternenseemann@systemli.org>
This commit is contained in:
Vincent Ambo 2021-09-18 17:35:30 +03:00 committed by tazjin
parent 98e4d4b18f
commit 86a114ac45

View file

@ -9,7 +9,7 @@ let
description = "Restic backups to GCS"; description = "Restic backups to GCS";
mkStringOption = default: lib.mkOption { mkStringOption = default: lib.mkOption {
inherit default; inherit default;
type = lib.types.string; type = lib.types.str;
}; };
in { in {
options.services.depot.restic = { options.services.depot.restic = {
@ -21,12 +21,12 @@ in {
paths = with lib; mkOption { paths = with lib; mkOption {
description = "Directories that should be backed up"; description = "Directories that should be backed up";
type = types.listOf types.string; type = types.listOf types.str;
}; };
exclude = with lib; mkOption { exclude = with lib; mkOption {
description = "Files that should be excluded from backups"; description = "Files that should be excluded from backups";
type = types.listOf types.string; type = types.listOf types.str;
}; };
}; };