chore: change filename format for paperless
Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>
This commit is contained in:
parent
381924aee1
commit
abdeb98f11
@ -3,8 +3,7 @@
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
{
|
||||
}: {
|
||||
options.snowflake.services.paperless = {
|
||||
enable = lib.mkEnableOption "Enable paperless service";
|
||||
|
||||
@ -24,8 +23,7 @@
|
||||
};
|
||||
};
|
||||
|
||||
config =
|
||||
let
|
||||
config = let
|
||||
cfg = config.snowflake.services.paperless;
|
||||
in
|
||||
lib.mkIf cfg.enable {
|
||||
@ -47,6 +45,7 @@
|
||||
PAPEERLESS_TASK_WORKERS = 4;
|
||||
PAPERLESS_THREADS_PER_WORKER = 4;
|
||||
PAPERLESS_ADMIN_USER = cfg.adminUser;
|
||||
PAPERLESS_FILENAME_FORMAT = "{created_year}/{document_type}/{title}";
|
||||
};
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user