Initial commit
This commit is contained in:
36
modules/desktop/cups.nix
Normal file
36
modules/desktop/cups.nix
Normal file
@@ -0,0 +1,36 @@
|
||||
{ pkgs, username, ... }: {
|
||||
services.printing = {
|
||||
enable = true;
|
||||
drivers = [
|
||||
pkgs.splix # Xerox Phaser 3117
|
||||
pkgs.pantum-driver # Pantum M6500W
|
||||
];
|
||||
};
|
||||
hardware.printers = {
|
||||
ensurePrinters = [
|
||||
{
|
||||
name = "Pantum";
|
||||
location = "Home";
|
||||
deviceUri = "ipps://pantum._ipps._tcp.local/";
|
||||
model = "Pantum/Pantum-M6500W-Series.ppd";
|
||||
ppdOptions = {
|
||||
PageSize = "A4";
|
||||
};
|
||||
}
|
||||
];
|
||||
ensureDefaultPrinter = "Pantum";
|
||||
};
|
||||
|
||||
services.saned.enable = true;
|
||||
hardware.sane = {
|
||||
enable = true;
|
||||
extraBackends = [ pkgs.pantum-driver pkgs.sane-airscan ];
|
||||
};
|
||||
services.udev.packages = [ pkgs.sane-airscan ];
|
||||
|
||||
n.misc.unfreePackages = [
|
||||
"pantum-driver-1.1.123"
|
||||
"pantum-driver"
|
||||
];
|
||||
users.users.${username}.extraGroups = [ "scanner" "lp" ];
|
||||
}
|
Reference in New Issue
Block a user