From 3ca38316fd78b7abe2bad38d10097cae04fde54b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cyryl=20P=C5=82otnicki?= Date: Sun, 26 Apr 2020 14:08:40 +0100 Subject: [PATCH] add scanner - wip --- nixos/common-hardware.nix | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/nixos/common-hardware.nix b/nixos/common-hardware.nix index 91057a26..70cf0335 100644 --- a/nixos/common-hardware.nix +++ b/nixos/common-hardware.nix @@ -16,7 +16,7 @@ extraModules = [ pkgs.pulseaudio-modules-bt ]; }; hardware.u2f.enable = true; - hardware.sane.enable = true; + hardware.bluetooth = { enable = true; package = pkgs.bluezFull; @@ -28,17 +28,24 @@ services.printing = { enable = true; - drivers = [ pkgs.epson-escpr pkgs.samsung-unified-linux-driver pkgs.splix ]; + drivers = with pkgs; [ epson-escpr samsung-unified-linux-driver splix ]; }; hardware.printers.ensurePrinters = [{ - description = "Epson XP540"; - name = "epsonxp540"; + description = "Epson XP-540"; + name = "epson_xp540"; deviceUri = "ipp://epsonxp540.lan/ipp/print"; model = "epson-inkjet-printer-escpr/Epson-XP-540_Series-epson-escpr-en.ppd"; ppdOptions = { PageSize = "A4"; Duplex = "DuplexNoTumble"; }; }]; + hardware.sane = { + enable = true; + netConf = "epsonxp540.lan"; + }; + + services.saned.enable = true; + powerManagement.enable = (lib.mkForce true); powerManagement.cpuFreqGovernor = (lib.mkForce null); powerManagement.powertop.enable = true;