From 0f430a625e0a55371fd79634e53f1fd7852c0a34 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20B=C3=A4dorf?= Date: Tue, 29 Aug 2023 11:13:08 +0200 Subject: [PATCH] fix: Fix default scanner device, update scan2paperless --- flake.lock | 14 +++++++------- hosts/chocolatebar/chocolatebar.nix | 2 +- users/ben/default.nix | 1 + 3 files changed, 9 insertions(+), 8 deletions(-) diff --git a/flake.lock b/flake.lock index b6aed3aa..11fce849 100644 --- a/flake.lock +++ b/flake.lock @@ -528,11 +528,11 @@ }, "nixpkgs_2": { "locked": { - "lastModified": 1686412476, - "narHash": "sha256-inl9SVk6o5h75XKC79qrDCAobTD1Jxh6kVYTZKHzewA=", + "lastModified": 1693158576, + "narHash": "sha256-aRTTXkYvhXosGx535iAFUaoFboUrZSYb1Ooih/auGp0=", "owner": "nixos", "repo": "nixpkgs", - "rev": "21951114383770f96ae528d0ae68824557768e81", + "rev": "a999c1cc0c9eb2095729d5aa03e0d8f7ed256780", "type": "github" }, "original": { @@ -568,11 +568,11 @@ "nixpkgs": "nixpkgs_2" }, "locked": { - "lastModified": 1686513257, - "narHash": "sha256-KCC4QNPz784V7yRKVqDuVX7NbdfjoA5smQ4oXoroNog=", + "lastModified": 1693298356, + "narHash": "sha256-bOwygw67/iX2kAFCwsnmEjIXnE22S0tumoLc6j5OepE=", "ref": "refs/heads/main", - "rev": "105e066bf6498ab04fcab7cdffa1c59b3ebe253d", - "revCount": 9, + "rev": "a66e3c9f80f7cc45beefd1408cec92553d3301e0", + "revCount": 11, "type": "git", "url": "https://git.pub.solar/b12f/scan2paperless.git" }, diff --git a/hosts/chocolatebar/chocolatebar.nix b/hosts/chocolatebar/chocolatebar.nix index 158edede..f1c9e980 100644 --- a/hosts/chocolatebar/chocolatebar.nix +++ b/hosts/chocolatebar/chocolatebar.nix @@ -37,7 +37,7 @@ in { runnerVarsFile = config.age.secrets.drone-runner-exec-config.path; }; - pub-solar.paperless.scannerDefaultDevice = "hp3900:libusb:005:002"; + pub-solar.paperless.scannerDefaultDevice = "hp3900:libusb:005:004"; services.openssh.openFirewall = true; networking.firewall.allowedTCPPorts = diff --git a/users/ben/default.nix b/users/ben/default.nix index a0749405..bcd80281 100644 --- a/users/ben/default.nix +++ b/users/ben/default.nix @@ -49,6 +49,7 @@ in { ocrLanguage = "nld+deu"; dataDir = "/home/${psCfg.user.name}/Nextcloud/Paperless"; consumptionDir = "/home/${psCfg.user.name}/.local/share/scandir"; + scannerDefaultDevice = "hp3900:libusb:005:004"; }; arduino.enable = true;