feat: add printer driver

This commit is contained in:
Jacob Bachmann 2024-01-08 17:22:24 +01:00
parent 610e399cff
commit 7692303804
Signed by: bchmnn
GPG key ID: 732A612DAD28067D
3 changed files with 129 additions and 2 deletions

View file

@ -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
];
}