feat: add printer driver
This commit is contained in:
parent
610e399cff
commit
7692303804
3 changed files with 129 additions and 2 deletions
|
|
@ -1,6 +1,11 @@
|
|||
{ ... }: {
|
||||
{ pkgs, config, ... }: {
|
||||
# Enable CUPS to print documents.
|
||||
services.printing.enable = true;
|
||||
services.printing = {
|
||||
enable = true;
|
||||
drivers = [
|
||||
pkgs.mfcl3750cdwcupswrapper
|
||||
];
|
||||
};
|
||||
|
||||
services.avahi = {
|
||||
enable = true;
|
||||
|
|
@ -8,4 +13,20 @@
|
|||
openFirewall = true;
|
||||
};
|
||||
|
||||
/*
|
||||
hardware.printers = {
|
||||
ensurePrinters = [
|
||||
{
|
||||
name = "Brother MFC-L3750CDW series";
|
||||
location = "Home";
|
||||
deviceUri = "ipp://BROTHER-ETH.local.:631/ipp/print";
|
||||
model =
|
||||
}
|
||||
]
|
||||
}
|
||||
*/
|
||||
|
||||
environment.systemPackages = with pkgs; with config.bchmnn; lib.optionals (gui.enable) [
|
||||
system-config-printer
|
||||
];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue