mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-22 10:28:27 +00:00
Add new options to nixos modules
This commit is contained in:
@ -83,6 +83,10 @@ let
|
||||
valid = "30 days";
|
||||
};
|
||||
};
|
||||
download-all = {
|
||||
max-files = 500;
|
||||
max-size = "1400M";
|
||||
};
|
||||
openid = {
|
||||
enabled = false;
|
||||
display = "";
|
||||
@ -319,6 +323,25 @@ in {
|
||||
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 {
|
||||
type = types.listOf (types.submodule {
|
||||
options = {
|
||||
|
Reference in New Issue
Block a user