summaryrefslogtreecommitdiffstats
path: root/2configs
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2023-04-26 18:41:02 +0200
committermakefu <github@syntax-fehler.de>2023-04-26 18:41:02 +0200
commite0dec82a577b878e4fa7cfebc435f92a658007aa (patch)
treeba4307b7e15f3fa1dd62cb3bb9c1823d01e24c71 /2configs
parent820ff0dc9b960ed2536f21826f59d03e5a825098 (diff)
ma wbob: add brother ql-800
Diffstat (limited to '2configs')
-rw-r--r--2configs/bureautomation/printer.nix25
1 files changed, 25 insertions, 0 deletions
diff --git a/2configs/bureautomation/printer.nix b/2configs/bureautomation/printer.nix
new file mode 100644
index 000000000..f0cf495ef
--- /dev/null
+++ b/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"
+ '';
+
+}
[cgit] Unable to lock slot /tmp/cgit/c6300000.lock: No such file or directory (2)