diff --git a/nixos/modules/services/misc/paperless.nix b/nixos/modules/services/misc/paperless.nix index 3dd609a6d6318..6a22d8316f0bf 100644 --- a/nixos/modules/services/misc/paperless.nix +++ b/nixos/modules/services/misc/paperless.nix @@ -497,8 +497,7 @@ in "d '${cfg.exporter.directory}' - ${cfg.user} ${config.users.users.${cfg.user}.group} - -" ]; - services.paperless.exporter.settings = - lib.mapAttrs (n: v: lib.mkOptionDefault v.default) options.services.paperless.exporter.settings.default; + services.paperless.exporter.settings = options.services.paperless.exporter.settings.default; systemd.services.paperless-exporter = { startAt = lib.defaultTo [] cfg.exporter.onCalendar; diff --git a/nixos/tests/paperless.nix b/nixos/tests/paperless.nix index 9da3a82149148..960a907d7904e 100644 --- a/nixos/tests/paperless.nix +++ b/nixos/tests/paperless.nix @@ -13,7 +13,7 @@ import ./make-test-python.nix ({ lib, ... }: { enable = true; settings = { - "no-color" = false; # override a default option + "no-color" = lib.mkForce false; # override a default option "no-thumbnail" = true; # add a new option };