mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-22 02:18:26 +00:00
Add new options to nixos modules
This commit is contained in:
@ -62,6 +62,10 @@ let
|
|||||||
enabled = true;
|
enabled = true;
|
||||||
older-than = "30 days";
|
older-than = "30 days";
|
||||||
};
|
};
|
||||||
|
cleanup-downloads = {
|
||||||
|
enabled = true;
|
||||||
|
older-than = "14 days";
|
||||||
|
};
|
||||||
check-nodes = {
|
check-nodes = {
|
||||||
enabled = true;
|
enabled = true;
|
||||||
min-not-found = 2;
|
min-not-found = 2;
|
||||||
@ -601,6 +605,26 @@ in {
|
|||||||
default = defaults.house-keeping.cleanup-remember-me;
|
default = defaults.house-keeping.cleanup-remember-me;
|
||||||
description = "Settings for cleaning up remember me tokens.";
|
description = "Settings for cleaning up remember me tokens.";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
cleanup-downloads = mkOption {
|
||||||
|
type = types.submodule({
|
||||||
|
options = {
|
||||||
|
enabled = mkOption {
|
||||||
|
type = types.bool;
|
||||||
|
default = defaults.house-keeping.cleanup-downloads.enabled;
|
||||||
|
description = "Whether this task is enabled.";
|
||||||
|
};
|
||||||
|
older-than = mkOption {
|
||||||
|
type = types.str;
|
||||||
|
default = defaults.house-keeping.cleanup-downloads.older-than;
|
||||||
|
description = "The miminum age of a download file to delete.";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
});
|
||||||
|
default = defaults.house-keeping.cleanup-downloads;
|
||||||
|
description = "";
|
||||||
|
};
|
||||||
|
|
||||||
check-nodes = mkOption {
|
check-nodes = mkOption {
|
||||||
type = types.submodule({
|
type = types.submodule({
|
||||||
options = {
|
options = {
|
||||||
|
@ -83,6 +83,10 @@ let
|
|||||||
valid = "30 days";
|
valid = "30 days";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
download-all = {
|
||||||
|
max-files = 500;
|
||||||
|
max-size = "1400M";
|
||||||
|
};
|
||||||
openid = {
|
openid = {
|
||||||
enabled = false;
|
enabled = false;
|
||||||
display = "";
|
display = "";
|
||||||
@ -319,6 +323,25 @@ in {
|
|||||||
description = "Authentication";
|
description = "Authentication";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
download-all = mkOption {
|
||||||
|
type = types.submodule({
|
||||||
|
options = {
|
||||||
|
max-files = mkOption {
|
||||||
|
type = types.int;
|
||||||
|
default = defaults.download-all.max-files;
|
||||||
|
description = "How many files to allow in a zip.";
|
||||||
|
};
|
||||||
|
max-size = mkOption {
|
||||||
|
type = types.str;
|
||||||
|
default = defaults.download-all.max-size;
|
||||||
|
description = "The maximum (uncompressed) size of the zip file contents.";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
});
|
||||||
|
default = defaults.download-all;
|
||||||
|
description = "";
|
||||||
|
};
|
||||||
|
|
||||||
openid = mkOption {
|
openid = mkOption {
|
||||||
type = types.listOf (types.submodule {
|
type = types.listOf (types.submodule {
|
||||||
options = {
|
options = {
|
||||||
|
Reference in New Issue
Block a user