define printer in nix
This commit is contained in:
parent
6f82025509
commit
09f3b7cc6e
2 changed files with 13 additions and 5 deletions
|
@ -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;
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue