3p/nixpkgs: fix paperless when timeZones are set
This commit is contained in:
parent
b450903751
commit
fccddb3c6a
3 changed files with 22 additions and 3 deletions
|
@ -16,11 +16,11 @@ let
|
|||
PAPERLESS_MEDIA_ROOT = cfg.mediaDir;
|
||||
PAPERLESS_CONSUMPTION_DIR = cfg.consumptionDir;
|
||||
GUNICORN_CMD_ARGS = "--bind=${cfg.address}:${toString cfg.port}";
|
||||
} // optionalAttrs (config.time.timeZone != null) {
|
||||
PAPERLESS_TIME_ZONE = config.time.timeZone;
|
||||
} // (
|
||||
lib.mapAttrs (_: toString) cfg.extraConfig
|
||||
) // optionalAttrs (config.time.timeZone != null) {
|
||||
PAPERLESS_TIME_ZONE = lib.mkDefault config.time.timeZone;
|
||||
} // optionalAttrs enableRedis {
|
||||
) // optionalAttrs enableRedis {
|
||||
PAPERLESS_REDIS = "unix://${redisServer.unixSocket}";
|
||||
};
|
||||
|
||||
|
|
18
third_party/nixpkgs/patches/paperless-no-you-cant-do-that.patch
vendored
Normal file
18
third_party/nixpkgs/patches/paperless-no-you-cant-do-that.patch
vendored
Normal file
|
@ -0,0 +1,18 @@
|
|||
diff --git a/nixos/modules/services/misc/paperless.nix b/nixos/modules/services/misc/paperless.nix
|
||||
--- a/nixos/modules/services/misc/paperless.nix
|
||||
+++ b/nixos/modules/services/misc/paperless.nix
|
||||
@@ -16,11 +16,11 @@ let
|
||||
PAPERLESS_MEDIA_ROOT = cfg.mediaDir;
|
||||
PAPERLESS_CONSUMPTION_DIR = cfg.consumptionDir;
|
||||
GUNICORN_CMD_ARGS = "--bind=${cfg.address}:${toString cfg.port}";
|
||||
+ } // optionalAttrs (config.time.timeZone != null) {
|
||||
+ PAPERLESS_TIME_ZONE = config.time.timeZone;
|
||||
} // (
|
||||
lib.mapAttrs (_: toString) cfg.extraConfig
|
||||
- ) // optionalAttrs (config.time.timeZone != null) {
|
||||
- PAPERLESS_TIME_ZONE = lib.mkDefault config.time.timeZone;
|
||||
- } // optionalAttrs enableRedis {
|
||||
+ ) // optionalAttrs enableRedis {
|
||||
PAPERLESS_REDIS = "unix://${redisServer.unixSocket}";
|
||||
};
|
||||
|
1
third_party/nixpkgs/patches/series
vendored
1
third_party/nixpkgs/patches/series
vendored
|
@ -0,0 +1 @@
|
|||
paperless-no-you-cant-do-that.patch
|
Loading…
Reference in a new issue