stockholm/makefu/2configs/bureautomation/printer.nix
2023-04-26 18:41:02 +02:00

26 lines
587 B
Nix

{ pkgs, config, ... }:
let
mainUser = config.krebs.build.user.name;
in {
services.printing = {
enable = true;
drivers = with pkgs;[
brlaser
cups-ptouch
];
};
users.users.kiosk.extraGroups = [ "scanner" "lp" ];
state = [ "/var/lib/cups"];
users.users.kiosk.packages = with pkgs;[
python3Packages.brother-ql
libreoffice
qrencode
imagemagick
];
services.udev.extraRules = ''
SUBSYSTEMS=="usb", ATTRS{idVendor}=="04f9", ATTRS{idProduct}=="209b", ATTRS{serial}=="000F1Z401759", MODE="0664", GROUP="lp", SYMLINK+="usb/lp0"
'';
}