mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-21 09:58:26 +00:00
Add list-id option to nixos module
This commit is contained in:
@ -7,4 +7,4 @@ fi
|
|||||||
|
|
||||||
nixos-rebuild build-vm \
|
nixos-rebuild build-vm \
|
||||||
-I nixos-config=./configuration-test.nix \
|
-I nixos-config=./configuration-test.nix \
|
||||||
-I nixpkgs=https://github.com/NixOS/nixpkgs-channels/archive/nixos-19.09.tar.gz
|
-I nixpkgs=https://github.com/NixOS/nixpkgs-channels/archive/nixos-20.03.tar.gz
|
||||||
|
@ -6,9 +6,9 @@ in
|
|||||||
imports = docspell.modules;
|
imports = docspell.modules;
|
||||||
|
|
||||||
i18n = {
|
i18n = {
|
||||||
consoleKeyMap = "neo";
|
|
||||||
defaultLocale = "en_US.UTF-8";
|
defaultLocale = "en_US.UTF-8";
|
||||||
};
|
};
|
||||||
|
console.keyMap = "neo";
|
||||||
|
|
||||||
users.users.root = {
|
users.users.root = {
|
||||||
password = "root";
|
password = "root";
|
||||||
@ -56,6 +56,6 @@ in
|
|||||||
firewall.allowedTCPPorts = [7880];
|
firewall.allowedTCPPorts = [7880];
|
||||||
};
|
};
|
||||||
|
|
||||||
system.stateVersion = "19.09";
|
system.stateVersion = "20.03";
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -21,6 +21,9 @@ let
|
|||||||
user = "sa";
|
user = "sa";
|
||||||
password = "";
|
password = "";
|
||||||
};
|
};
|
||||||
|
send-mail = {
|
||||||
|
list-id = "";
|
||||||
|
};
|
||||||
scheduler = {
|
scheduler = {
|
||||||
pool-size = 2;
|
pool-size = 2;
|
||||||
counting-scheme = "4,1";
|
counting-scheme = "4,1";
|
||||||
@ -202,6 +205,30 @@ in {
|
|||||||
description = "Database connection settings";
|
description = "Database connection settings";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
send-mail = mkOption {
|
||||||
|
type = types.submodule({
|
||||||
|
options = {
|
||||||
|
list-id = mkOption {
|
||||||
|
type = types.str;
|
||||||
|
default = defaults.send-mail.list-id;
|
||||||
|
description = ''
|
||||||
|
This is used as the List-Id e-mail header when mails are sent
|
||||||
|
from docspell to its users (example: for notification mails). It
|
||||||
|
is not used when sending to external recipients. If it is empty,
|
||||||
|
no such header is added. Using this header is often useful when
|
||||||
|
filtering mails.
|
||||||
|
|
||||||
|
It should be a string in angle brackets. See
|
||||||
|
https://tools.ietf.org/html/rfc2919 for a formal specification
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
|
};
|
||||||
|
});
|
||||||
|
default = defaults.send-mail;
|
||||||
|
description = "Settings for sending mails.";
|
||||||
|
};
|
||||||
|
|
||||||
scheduler = mkOption {
|
scheduler = mkOption {
|
||||||
type = types.submodule({
|
type = types.submodule({
|
||||||
options = {
|
options = {
|
||||||
|
Reference in New Issue
Block a user