diff options
author | Mark Nipper <nipsy@bitgnome.net> | 2025-01-22 13:30:31 -0800 |
---|---|---|
committer | Mark Nipper <nipsy@bitgnome.net> | 2025-01-22 13:30:31 -0800 |
commit | 3c34ace98c3c104361ee7319b510fe6939bef3c8 (patch) | |
tree | b2f8a56f5005195fcf5d68280af4fee01c8e4314 /hosts | |
parent | 9f377abc6f2877faff53d078f621bcf458136a43 (diff) | |
download | nix-3c34ace98c3c104361ee7319b510fe6939bef3c8.tar nix-3c34ace98c3c104361ee7319b510fe6939bef3c8.tar.gz nix-3c34ace98c3c104361ee7319b510fe6939bef3c8.tar.bz2 nix-3c34ace98c3c104361ee7319b510fe6939bef3c8.tar.lz nix-3c34ace98c3c104361ee7319b510fe6939bef3c8.tar.xz nix-3c34ace98c3c104361ee7319b510fe6939bef3c8.tar.zst nix-3c34ace98c3c104361ee7319b510fe6939bef3c8.zip |
Add Brother printer @arrakis
Diffstat (limited to '')
-rw-r--r-- | hosts/arrakis/hardware-configuration.nix | 16 |
1 files changed, 16 insertions, 0 deletions
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"; + }]; + }; }; } |