fix: fix paperless dataDir for user ben
All checks were successful
continuous-integration/drone/push Build is passing

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