grimm-nixos-laptop/common/printing.nix

32 lines
636 B
Nix
Raw Normal View History

2024-05-07 23:31:41 +02:00
{
pkgs,
config,
lib,
...
}:
2024-04-10 16:51:28 +02:00
let
inherit (config.grimmShared) enable graphical;
2024-04-10 16:51:28 +02:00
in
{
config = lib.mkIf (enable && config.services.printing.enable) {
2024-05-11 22:55:59 +02:00
services.printing.drivers = with pkgs; [
brgenml1lpr
brgenml1cupswrapper
];
services.avahi = {
enable = true;
nssmdns4 = true;
openFirewall = true;
2024-05-07 23:31:41 +02:00
};
# services.printing.cups-pdf.enable = true;
2024-05-11 22:55:59 +02:00
hardware.sane.brscan4.enable = true; # enables support for SANE scanners
environment.systemPackages = (
lib.optionals graphical [
pkgs.kdePackages.skanpage
# libsForQt5.skanpage
]
);
};
2024-03-24 16:59:47 +01:00
}