diff options
author | makefu <github@syntax-fehler.de> | 2023-04-26 18:41:02 +0200 |
---|---|---|
committer | makefu <github@syntax-fehler.de> | 2023-04-26 18:41:02 +0200 |
commit | d030aae27223659504eee9775f22755eda0fe5d1 (patch) | |
tree | 6236feeec6d047a5d79c3aa7f8e162245f7ffc5a /makefu/2configs/bureautomation | |
parent | 60fb7a1aa12b1d18224babeaf5481e43663b65b8 (diff) |
ma wbob: add brother ql-800
Diffstat (limited to 'makefu/2configs/bureautomation')
-rw-r--r-- | makefu/2configs/bureautomation/printer.nix | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/makefu/2configs/bureautomation/printer.nix b/makefu/2configs/bureautomation/printer.nix new file mode 100644 index 000000000..f0cf495ef --- /dev/null +++ b/makefu/2configs/bureautomation/printer.nix @@ -0,0 +1,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" + ''; + +} |