From d936aca6982dffa61e1e1930373f8309825a5b6a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20B=C3=A4dorf?= Date: Wed, 11 Oct 2023 14:32:40 +0200 Subject: [PATCH] fix: printing and scanning setup on pie --- hosts/pie/paperless.nix | 3 --- modules/printing/default.nix | 5 +++-- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/hosts/pie/paperless.nix b/hosts/pie/paperless.nix index 8518a03..380cc76 100644 --- a/hosts/pie/paperless.nix +++ b/hosts/pie/paperless.nix @@ -12,7 +12,6 @@ with lib; let dataDir = "${xdg.dataHome}/Paperless"; backupDir = "${xdg.dataHome}/PaperlessBackup"; consumptionDir = "/home/${psCfg.user.name}/.local/share/scandir"; - scannerDefaultDevice = "hp3900:libusb:005:004"; in { services.paperless = { enable = true; @@ -41,11 +40,9 @@ in { home-manager.users."${psCfg.user.name}" = { home.sessionVariables = { - SCANNER_DEFAULT_DEVICE = scannerDefaultDevice; SCANNER_OUTPUT_DIR = consumptionDir; }; systemd.user.sessionVariables = { - SCANNER_DEFAULT_DEVICE = scannerDefaultDevice; SCANNER_OUTPUT_DIR = consumptionDir; }; }; diff --git a/modules/printing/default.nix b/modules/printing/default.nix index b41e34a..9706aaf 100644 --- a/modules/printing/default.nix +++ b/modules/printing/default.nix @@ -18,8 +18,9 @@ services.printing.drivers = [ pkgs.gutenprint - pkgs.cups-brother-hl3140cw - ]; + ] ++ (if (pkgs.system == "x86_64-linux") + then [ pkgs.cups-brother-hl3140cw ] + else []); networking.hosts = flake.self.lib.addLocalHostname ["cups.local"];