fix: fix paperless dataDir for user ben

This commit is contained in:
Benjamin Bädorf 2023-08-29 14:56:12 +02:00
parent 4f42b5faff
commit 16412872a3
No known key found for this signature in database
GPG key ID: 4406E80E13CD656C

View file

@ -7,6 +7,7 @@
...
}: let
psCfg = config.pub-solar;
xdg = config.home-manager.users."${psCfg.user.name}".xdg;
in {
imports = [
./home.nix
@ -47,7 +48,7 @@ in {
paperless = {
enable = true;
ocrLanguage = "nld+deu";
dataDir = "/home/${psCfg.user.name}/Nextcloud/Paperless";
dataDir = "${xdg.dataHome}/Paperless";
consumptionDir = "/home/${psCfg.user.name}/.local/share/scandir";
scannerDefaultDevice = "hp3900:libusb:005:004";
sync.enable = true;