mirror of
https://github.com/tomasriveral/nixos.git
synced 2026-10-10 17:02:43 +02:00
dendritic: rewrote entire config
This commit is contained in:
1 parent
a93284ff80
commit
c8ee6d85fe
190 files changed
+6764
-8101
No files matched your search
@@ -0,0 +1,41 @@
|
||||
{ ... }: {
|
||||
flake.nixosModules.printer = {pkgs, ...}: {
|
||||
#https://wiki.nixos.org/wiki/Printing
|
||||
services.avahi = {
|
||||
enable = true;
|
||||
nssmdns4 = true;
|
||||
openFirewall = true;
|
||||
};
|
||||
|
||||
# Enable CUPS to print documents.
|
||||
services.printing = {
|
||||
enable = true;
|
||||
drivers = with pkgs; [
|
||||
cups-filters
|
||||
#cups-browsed
|
||||
#gutenprint
|
||||
#gutenprintBin
|
||||
hplipWithPlugin
|
||||
hplip
|
||||
];
|
||||
};
|
||||
services.ipp-usb.enable = true;
|
||||
environment.systemPackages = with pkgs; [
|
||||
kdePackages.print-manager
|
||||
ghostscript
|
||||
hplipWithPlugin
|
||||
];
|
||||
hardware.printers = {
|
||||
ensurePrinters = [
|
||||
{
|
||||
name = "HP_OfficeJet_Pro_7740";
|
||||
location = "Home";
|
||||
deviceUri = "hp:/usb/OfficeJet_Pro_7740_series";
|
||||
model = "drv:///hp/hpcups.drv/hp-officejet_pro_7740_series.ppd";
|
||||
}
|
||||
];
|
||||
|
||||
ensureDefaultPrinter = "HP_OfficeJet_Pro_7740";
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user