2025.04.30-20:50
This commit is contained in:
44
nixos_24.11_cinnamon/config/printer.nix
Normal file
44
nixos_24.11_cinnamon/config/printer.nix
Normal file
@ -0,0 +1,44 @@
|
||||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
|
||||
# Enable CUPS
|
||||
services.printing = {
|
||||
enable = true;
|
||||
#openFirewall = true;
|
||||
drivers = [
|
||||
pkgs.brlaser
|
||||
pkgs.hplip
|
||||
# pkgs.hplipWithPlugin
|
||||
];
|
||||
};
|
||||
|
||||
# Enable Cups-PDF
|
||||
services.printing.cups-pdf = {
|
||||
enable = true;
|
||||
instances = {
|
||||
pdf = {
|
||||
settings = {
|
||||
Out = "\${HOME}/Cups-pdf";
|
||||
UserUMask = "0033";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
# Enable Sane
|
||||
hardware.sane = {
|
||||
enable = true;
|
||||
extraBackends = [ pkgs.hplipWithPlugin ];
|
||||
};
|
||||
|
||||
users.users.zulumann.extraGroups = ["scanner" "lp"];
|
||||
|
||||
# programs.system-config-printer.enable = true;
|
||||
|
||||
networking.firewall = {
|
||||
allowedTCPPorts = [ 80 427 443 515 631 8080 9100 6566 ];
|
||||
allowedUDPPorts = [ 427 3702 5353 ];
|
||||
};
|
||||
|
||||
}
|
Reference in New Issue
Block a user