fix: fix paperless dataDir for user ben
This commit is contained in:
parent
4f42b5faff
commit
16412872a3
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue