summaryrefslogtreecommitdiffstats
path: root/makefu/2configs/bureautomation/printer.nix
blob: f0cf495efcb0c08ca337a1208da0a0599b19f6e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{ 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"
  '';

}