Add new options to nixos modules

This commit is contained in:
eikek
2022-04-11 20:53:48 +02:00
parent 8e8ed55c00
commit 69964155c3
2 changed files with 47 additions and 0 deletions

View File

@ -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 = {