Moved hp drivers to its own .nix out of CUPs.nix

This commit is contained in:
zonsopkomst 2024-01-20 12:39:26 -06:00
parent f9b3d6f6c1
commit afac5b4e99
3 changed files with 16 additions and 7 deletions

View File

@ -7,10 +7,4 @@
# Enable support for SANE scanners.
# Add "scanner" & "lp" to users `extraGroups` for access to printer & scanner.
hardware.sane.enable = true;
# Enable HP printing drivers & scanner backend
services.printing.drivers = [ pkgs.hplip ];
hardware.sane.extraBackends = [ pkgs.hplipWithPlugin ];
}

8
common/drivers-hp.nix Normal file
View File

@ -0,0 +1,8 @@
{ config, pkgs, ... }:
{
# Enable HP printing drivers & scanner backend
services.printing.drivers = [ pkgs.hplip ];
hardware.sane.extraBackends = [ pkgs.hplipWithPlugin ];
}

View File

@ -43,7 +43,8 @@
# Common
./common/amd.nix
#./common/bluetooth.nix
./common/CUPS.nix
#./common/CUPS.nix
#./common/drivers-hp.nix
./common/duplicati.nix
#./common/hyprland.nix
./common/pipewire.nix
@ -108,6 +109,7 @@
#./common/amd.nix
#./common/bluetooth.nix
#./common/CUPS.nix
#./common/drivers-hp.nix
#./common/duplicati.nix
#./common/hyprland.nix
#./common/pipewire.nix
@ -173,6 +175,7 @@
#./common/amd.nix
#./common/bluetooth.nix
./common/CUPS.nix
#./common/drivers-hp.nix
./common/duplicati.nix
#./common/hyprland.nix
./common/pipewire.nix
@ -238,6 +241,7 @@
./common/bluetooth.nix
./common/duplicati.nix
./common/CUPS.nix
./common/drivers-hp.nix
#./common/hyprland.nix
./common/pipewire.nix
./common/time.nix
@ -305,6 +309,7 @@
#./common/amd.nix
#./common/bluetooth.nix
./common/CUPS.nix
#./common/drivers-hp.nix
./common/duplicati.nix
#./common/hyprland.nix
./common/pipewire.nix
@ -369,6 +374,7 @@
#./common/amd.nix
./common/bluetooth.nix
./common/CUPS.nix
./common/drivers-hp.nix
./common/duplicati.nix
#./common/hyprland.nix
./common/pipewire.nix
@ -433,6 +439,7 @@
./common/amd.nix
#./common/bluetooth.nix
./common/CUPS.nix
./common/drivers-hp.nix
./common/duplicati.nix
#./common/hyprland.nix
./common/pipewire.nix