Allow setting up custom syncs
This commit is contained in:
parent
d5a2a06fde
commit
e27dadb8e4
|
@ -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 {
|
||||||
|
|
Loading…
Reference in a new issue