define printer in nix

This commit is contained in:
Cyryl Płotnicki 2020-04-26 13:23:27 +01:00
parent 6f82025509
commit 09f3b7cc6e
2 changed files with 13 additions and 5 deletions

View file

@ -26,6 +26,19 @@
''; '';
}; };
services.printing = {
enable = true;
drivers = [ pkgs.epson-escpr pkgs.samsung-unified-linux-driver pkgs.splix ];
};
hardware.printers.ensurePrinters = [{
description = "Epson XP540";
name = "epsonxp540";
deviceUri = "ipp://epsonxp540.lan/ipp/print";
model = "epson-inkjet-printer-escpr/Epson-XP-540_Series-epson-escpr-en.ppd";
ppdOptions = { PageSize = "A4"; Duplex = "DuplexNoTumble"; };
}];
powerManagement.enable = (lib.mkForce true); powerManagement.enable = (lib.mkForce true);
powerManagement.cpuFreqGovernor = (lib.mkForce null); powerManagement.cpuFreqGovernor = (lib.mkForce null);
powerManagement.powertop.enable = true; powerManagement.powertop.enable = true;

View file

@ -25,11 +25,6 @@
clipmenu.enable = true; clipmenu.enable = true;
lorri.enable = true; lorri.enable = true;
printing = {
enable = true;
drivers = [ pkgs.epson-escpr pkgs.samsung-unified-linux-driver pkgs.splix ];
};
avahi = { avahi = {
enable = true; enable = true;
nssmdns = true; nssmdns = true;