Add printer.
This commit is contained in:
19
home/extras/printer.nix
Normal file
19
home/extras/printer.nix
Normal file
@@ -0,0 +1,19 @@
|
||||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
services.printing.drivers = [ pkgs.epson-escpr ];
|
||||
hardware.printers = {
|
||||
ensurePrinters = [{
|
||||
name = "Epson-XP-520";
|
||||
location = "Home";
|
||||
deviceUri = "http://192.168.178.34:631/ipp/print";
|
||||
model =
|
||||
"epson-inkjet-printer-escpr/Epson-XP-520_Series-epson-escpr-en.ppd";
|
||||
ppdOptions = {
|
||||
PageSize = "A4";
|
||||
Ink = "Mono";
|
||||
};
|
||||
}];
|
||||
ensureDefaultPrinter = "Epson-XP-520";
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user