diff options
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"; + }]; + }; }; } |