fix: add support for QL-800
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Benjamin Bädorf 2023-09-12 20:10:55 +02:00
parent c1158e26cb
commit 7be9e41657
No known key found for this signature in database
GPG key ID: 4406E80E13CD656C
3 changed files with 10 additions and 1 deletions

View file

@ -75,6 +75,10 @@ in {
pkgs.cups-brother-hl3140cw
];
services.udev.extraRules = ''
SUBSYSTEMS=="usb", ATTRS{idVendor}=="04f9", ATTRS{idProduct}=="209e", ATTRS{serial}=="000W0H924252", MODE="0664", GROUP="lp", SYMLINK+="usb/lp0"
'';
home-manager.users."${psCfg.user.name}" = {
xdg.configFile = mkIf psCfg.sway.enable {
"sway/config.d/10-autostart.conf".source = ./.config/sway/config.d/autostart.conf;

View file

@ -27,7 +27,6 @@ in {
];
hardware.sane = {
enable = true;
brscan4.enable = true;
extraBackends = [pkgs.hplipWithPlugin];
};
};

6
pkgs/print-label.nix Normal file
View file

@ -0,0 +1,6 @@
self:
with self; ''
TMPDIR=${coreutils}/bin/mktemp
echo "ASN#$1" > "$TMPDIR/input.txt"
${imagemagick}/bin/convert -size 696x64 xc:white -font "FreeMono" -pointsize 48 -fill black -annotate +16+48 "@$TMPDIR/input.txt" test.png
''