From 2a1dbe540a30e14fb42809a3c084d2df95f2c913 Mon Sep 17 00:00:00 2001 From: m3ta-chiron Date: Thu, 11 Jun 2026 09:29:20 +0200 Subject: [PATCH] fix: ksnip crash --- flake.lock | 18 +++++++++--------- hosts/m3-kratos/home.nix | 19 ++++++++++++++++++- 2 files changed, 27 insertions(+), 10 deletions(-) diff --git a/flake.lock b/flake.lock index 14465ba..06e0ef4 100644 --- a/flake.lock +++ b/flake.lock @@ -630,11 +630,11 @@ "treefmt-nix": "treefmt-nix" }, "locked": { - "lastModified": 1781140202, - "narHash": "sha256-hEIq258CpHUlpCjk4gDf8rTXxWaTEvH30oEWf5BrTFg=", + "lastModified": 1781157766, + "narHash": "sha256-InNpK3w0V6odvKtC5wCXZZiluiWAD6uLElz3to+sQA0=", "owner": "numtide", "repo": "llm-agents.nix", - "rev": "bb53759b44fff85eea34903064abe14085e31317", + "rev": "0b3a6a2dc43576f223d036ba70a29a2f0de99061", "type": "github" }, "original": { @@ -920,11 +920,11 @@ }, "nixpkgs-master_3": { "locked": { - "lastModified": 1781153468, - "narHash": "sha256-ZBRmjFtJn/XmHBV230OSabKQqxOoOJunJmBtSt1sLs0=", + "lastModified": 1781160346, + "narHash": "sha256-fYh977TEG3NQN8sAQRMVtyuidoiqKuRRgrMWLD+s01A=", "owner": "nixos", "repo": "nixpkgs", - "rev": "cd265fd6b43f2ec1257c2e400f648895d2ad7ccd", + "rev": "9e70637b2cb27f7d49c852f9fb7e0080ae953adb", "type": "github" }, "original": { @@ -1164,11 +1164,11 @@ ] }, "locked": { - "lastModified": 1781153862, - "narHash": "sha256-inru9e3OUY4xIf9xZjjNdEQsO3hq9qP6sc0IzxO4m10=", + "lastModified": 1781158001, + "narHash": "sha256-cg+genglm+qSyQ0nvu6cvpTuxkpYMw1Oi9GrtXPy6cI=", "owner": "nix-community", "repo": "NUR", - "rev": "693d3fb2b087955a22098417dbbfd5b0020be50a", + "rev": "e2af4a27c10f1ed1e6b55fb2de40cefe3f4a55e6", "type": "github" }, "original": { diff --git a/hosts/m3-kratos/home.nix b/hosts/m3-kratos/home.nix index 4e79a2e..4822a72 100644 --- a/hosts/m3-kratos/home.nix +++ b/hosts/m3-kratos/home.nix @@ -4,7 +4,6 @@ # m3ta-home via the profile mapping in hosts/common/users/m3tam3re.nix. { config, - inputs, lib, ... }: @@ -15,6 +14,8 @@ with lib; { config = mkMerge [ # ── XDG / MIME defaults ── { + qt.platformTheme.name = mkForce "qtct"; + xdg = { enable = true; configFile."mimeapps.list".force = true; @@ -58,6 +59,22 @@ with lib; { "6, monitor:DP-2" "7, monitor:DP-2" ]; + # m3ta-home sets QT_QPA_PLATFORMTHEME=gtk3 globally for Hyprland. + # ksnip crashes with duplicate GDK type registration under that Qt GTK + # platform theme, so use qtct for Qt apps on this host instead. + env = mkForce [ + "XCURSOR_SIZE,32" + "HYPRCURSOR_THEME,Bibata-Modern-Ice" + "WLR_NO_HARDWARE_CURSORS,1" + "XDG_CURRENT_DESKTOP,Hyprland" + "XDG_SESSION_TYPE,wayland" + "XDG_SESSION_DESKTOP,Hyprland" + "XKB_DEFAULT_LAYOUT,de" + "NIXOS_OZONE_WL,1" + "QT_QPA_PLATFORM,wayland;xcb" + "QT_QPA_PLATFORMTHEME,qt5ct" + "QT_QPA_PLATFORMTHEME_QT6,qt6ct" + ]; windowrule = [ "match:class dev.zed.Zed, workspace 1" "match:class ^(com.obsproject.Studio)$, workspace 2"