From 3c34ace98c3c104361ee7319b510fe6939bef3c8 Mon Sep 17 00:00:00 2001 From: Mark Nipper Date: Wed, 22 Jan 2025 13:30:31 -0800 Subject: Add Brother printer @arrakis --- hosts/arrakis/hardware-configuration.nix | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/hosts/arrakis/hardware-configuration.nix b/hosts/arrakis/hardware-configuration.nix index 3c508e5..855152e 100644 --- a/hosts/arrakis/hardware-configuration.nix +++ b/hosts/arrakis/hardware-configuration.nix @@ -50,16 +50,32 @@ hardware = { bluetooth.enable = true; + graphics = { enable = true; extraPackages = with pkgs; [ nvidia-vaapi-driver ]; extraPackages32 = with pkgs.pkgsi686Linux; [ nvidia-vaapi-driver ]; }; + nvidia = { modesetting.enable = true; open = true; package = pkgs.nvidia-patch.patch-nvenc (pkgs.nvidia-patch.patch-fbc config.boot.kernelPackages.nvidiaPackages.beta); #package = config.boot.kernelPackages.nvidiaPackages.beta; }; + + printers = let + brother = "Brother_HL-L2340D"; + ip = "192.168.1.20"; + in { + ensureDefaultPrinter = brother; + ensurePrinters = [{ + name = brother; + deviceUri = "ipp://${ip}/ipp"; + model = "everywhere"; + description = lib.replaceStrings [ "_" ] [ " " ] brother; + location = "home"; + }]; + }; }; } -- cgit v1.2.3