From f7eda08683f961a4995a7d2053bdf6f5cde54dd4 Mon Sep 17 00:00:00 2001 From: Asmir A Date: Tue, 8 Oct 2024 11:56:47 +0200 Subject: [PATCH] home_packages: add wrapper to qcad to use xcb as QT_QPA_PLATFORM --- home/home_packages.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/home/home_packages.nix b/home/home_packages.nix index d9e459a..b3a1de2 100644 --- a/home/home_packages.nix +++ b/home/home_packages.nix @@ -14,6 +14,9 @@ chromium_stackfield = pkgs.writeShellScriptBin "chromium_stackfield" '' ${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" '' if ${pkgs.coreutils}/bin/test $# -ne 1; then echo "Usage: $0 @" @@ -114,7 +117,6 @@ in { pwvucontrol python3 python3Packages.west - qcad remmina river rtorrent @@ -155,6 +157,7 @@ in { chromium_teams ssh_proxy wrap_sh + qcad ] ++ [ inputs.swaysw.packages.${system}.swaysw