Allow setting up custom syncs

This commit is contained in:
Manuel Thalmann 2024-05-14 15:28:47 +02:00
parent d5a2a06fde
commit e27dadb8e4

View file

@ -12,6 +12,7 @@ let
syncProviders = { syncProviders = {
nextcloud = mkProvider {}; nextcloud = mkProvider {};
proton = mkProvider {}; proton = mkProvider {};
manual = mkProvider {};
}; };
syncType = lib.types.submodule ( syncType = lib.types.submodule (
@ -20,6 +21,7 @@ let
type = lib.mkOption { type = lib.mkOption {
description = "The type of the sync"; description = "The type of the sync";
type = lib.types.enum (builtins.attrNames syncProviders); type = lib.types.enum (builtins.attrNames syncProviders);
default = "manual";
}; };
autoStart = lib.mkOption { autoStart = lib.mkOption {