diff --git a/users/ben/default.nix b/users/ben/default.nix index 07667ecf..1127adfd 100644 --- a/users/ben/default.nix +++ b/users/ben/default.nix @@ -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;