home_packages: add wrapper to qcad to use xcb as QT_QPA_PLATFORM

This commit is contained in:
Asmir A 2024-10-08 11:56:47 +02:00
parent 15e60767b6
commit f7eda08683
Signed by: asmir
GPG Key ID: 020C42B7A9ABA3E2

View File

@ -14,6 +14,9 @@
chromium_stackfield = pkgs.writeShellScriptBin "chromium_stackfield" '' chromium_stackfield = pkgs.writeShellScriptBin "chromium_stackfield" ''
${lib.getExe pkgs.ungoogled-chromium} --socket=wayland org.chromium.Chromium --app=https://stackfield.com/ ${lib.getExe pkgs.ungoogled-chromium} --socket=wayland org.chromium.Chromium --app=https://stackfield.com/
''; '';
qcad = pkgs.writeShellScriptBin "qcad" ''
QT_QPA_PLATFORM=xcb ${lib.getExe pkgs.qcad} $@
'';
ssh_proxy = pkgs.writeShellScriptBin "ssh_proxy" '' ssh_proxy = pkgs.writeShellScriptBin "ssh_proxy" ''
if ${pkgs.coreutils}/bin/test $# -ne 1; then if ${pkgs.coreutils}/bin/test $# -ne 1; then
echo "Usage: $0 <user>@<ssh_host>" echo "Usage: $0 <user>@<ssh_host>"
@ -114,7 +117,6 @@ in {
pwvucontrol pwvucontrol
python3 python3
python3Packages.west python3Packages.west
qcad
remmina remmina
river river
rtorrent rtorrent
@ -155,6 +157,7 @@ in {
chromium_teams chromium_teams
ssh_proxy ssh_proxy
wrap_sh wrap_sh
qcad
] ]
++ [ ++ [
inputs.swaysw.packages.${system}.swaysw inputs.swaysw.packages.${system}.swaysw