stockholm/makefu/2configs/bureautomation/printer.nix

29 lines
631 B
Nix
Raw Normal View History

2023-04-26 16:41:02 +00:00
{ pkgs, config, ... }:
let
mainUser = config.krebs.build.user.name;
in {
2023-04-29 19:11:06 +00:00
imports = [
./brother-ql-web.nix
];
2023-04-26 16:41:02 +00:00
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"
'';
}