ma wbob.r: add Brother QL-800 + ui

This commit is contained in:
makefu 2023-04-29 21:11:06 +02:00
parent d030aae272
commit 447b493143
No known key found for this signature in database
GPG Key ID: 36F7711F3FC0F225
6 changed files with 39 additions and 6 deletions

View File

@ -22,7 +22,7 @@ in {
# <stockholm/makefu/2configs/virtualisation/virtualbox.nix> # <stockholm/makefu/2configs/virtualisation/virtualbox.nix>
<stockholm/makefu/2configs/tinc/retiolum.nix> <stockholm/makefu/2configs/tinc/retiolum.nix>
<stockholm/makefu/2configs/gui/wbob-kiosk.nix> <stockholm/makefu/2configs/gui/wbob-kiosk.nix>
{ environment.systemPackages = [ pkgs.nano ]; } { environment.systemPackages = [ pkgs.brother_ql_web pkgs.nano ]; }
# <stockholm/makefu/2configs/gui/studio-virtual.nix> # <stockholm/makefu/2configs/gui/studio-virtual.nix>
# <stockholm/makefu/2configs/audio/jack-on-pulse.nix> # <stockholm/makefu/2configs/audio/jack-on-pulse.nix>

View File

@ -0,0 +1,23 @@
{pkgs, ... }:
let
pkg = pkgs.brother_ql_web;
in {
systemd.services.brother-ql-web = {
after = [ "network.target" ];
description = "Brother QL Web Interface";
wantedBy = [ "multi-user.target" ];
environment = {
FLASK_PRINTER = "usb://0x04f9:0x209b/000F1Z401759";
FLASK_MODEL = "QL-800";
#FLASK_SERVER_PORT = "8013";
#FLASK_LABEL_DEFAULT_SIZE = "d24";
#FLASK_LABEL_DEFAULT_QR_SIZE = "7";
};
serviceConfig = {
ExecStart = "${pkg}/bin/brother_ql_web";
DynamicUser = true;
SupplementaryGroups = "lp";
Restart = "always";
};
};
}

View File

@ -2,6 +2,9 @@
let let
mainUser = config.krebs.build.user.name; mainUser = config.krebs.build.user.name;
in { in {
imports = [
./brother-ql-web.nix
];
services.printing = { services.printing = {
enable = true; enable = true;
drivers = with pkgs;[ drivers = with pkgs;[

View File

@ -12,10 +12,9 @@
services.pipewire = { services.pipewire = {
enable = true; enable = true;
systemWide = true; # systemWide = true;
alsa.enable = true; alsa.enable = true;
alsa.support32Bit = true; alsa.support32Bit = true;
pulse.enable = true; pulse.enable = true;
jack.enable = true;
}; };
} }

View File

@ -5,11 +5,11 @@
./base.nix ./base.nix
]; ];
users.users.kiosk = { users.users.kiosk = {
packages = [ pkgs.chromium pkgs.vscode ]; packages = with pkgs;[ chromium vscode spotify tartube-yt-dlp ];
group = "kiosk"; group = "kiosk";
isNormalUser = true; isNormalUser = true;
uid = 1003; uid = 1003;
extraGroups = [ "wheel" "audio" "pulse" ]; extraGroups = [ "wheel" "audio" "pulse" "pipewire" ];
}; };
users.groups.kiosk.gid = 989 ; users.groups.kiosk.gid = 989 ;
services.xserver = { services.xserver = {
@ -31,7 +31,10 @@
}; };
environment.systemPackages = [ pkgs.gnomeExtensions.appindicator ]; environment.systemPackages = [
pkgs.gnomeExtensions.appindicator pkgs.pavucontrol pkgs.jellyfin-media-player pkgs.chromium pkgs.firefox pkgs.kodi
pkgs.pavucontrol
];
services.dbus.packages = with pkgs; [ gnome2.GConf gnome3.gnome-settings-daemon ]; services.dbus.packages = with pkgs; [ gnome2.GConf gnome3.gnome-settings-daemon ];
systemd.services.xset-off = { systemd.services.xset-off = {
@ -45,5 +48,9 @@
Restart = "on-failure"; Restart = "on-failure";
}; };
}; };
services.pipewire.systemWide = lib.mkForce false;
services.pipewire.config.pipewire-pulse = {
"pulse.properties"."server.address" = [ "unix:native" "tcp:4713" ];
};
} }

View File

@ -44,6 +44,7 @@ in {
alsa-hdspconf = callPackage ./custom/alsa-tools { alsaToolTarget="hdspconf";}; alsa-hdspconf = callPackage ./custom/alsa-tools { alsaToolTarget="hdspconf";};
alsa-hdspmixer = callPackage ./custom/alsa-tools { alsaToolTarget="hdspmixer";}; alsa-hdspmixer = callPackage ./custom/alsa-tools { alsaToolTarget="hdspmixer";};
alsa-hdsploader = callPackage ./custom/alsa-tools { alsaToolTarget="hdsploader";}; alsa-hdsploader = callPackage ./custom/alsa-tools { alsaToolTarget="hdsploader";};
brother_ql_web = (builtins.getFlake "github:makefu/brother_ql_web?rev=a3f8625f48111da8cd6f8e562c966cdca445b82d").packages.x86_64-linux.default;
qcma = super.pkgs.libsForQt5.callPackage ./custom/qcma { }; qcma = super.pkgs.libsForQt5.callPackage ./custom/qcma { };
inherit (callPackage ./devpi {}) devpi-web ; inherit (callPackage ./devpi {}) devpi-web ;
jellyfin = unstable.jellyfin; jellyfin = unstable.jellyfin;