Files
nixos/overlays/pkgs.nix
T
oqyude 730800d660
nixos flake checks / invariant-checks (push) Successful in 1m17s
test-runner / smoke (push) Successful in 1s
sddm: починить тему WhiteSur после plasma-workspace 6.8 (экран входа rydiwo)
plasma-workspace 6.8.1 убрал VirtualKeyboardLoader из
org.kde.breeze.components, а SDDM-тема WhiteSur (whitesur-kde 2024-11-18)
всё ещё его инстанцирует. Гритер не мог загрузить Main.qml:

  Main.qml:316:9: VirtualKeyboardLoader is not a type
  Fallback to embedded theme

и экран входа молча деградировал до встроенной плоской заглушки.

- overlays/patch-whitesur-sddm.pl: заменить VirtualKeyboardLoader на
  Keyboards.KWinVirtualKeyboard (API актуальной breeze-темы), сохранив
  интерфейс inputPanel (keyboardActive/showHide), который используется
  в других местах Main.qml
- overlays/pkgs.nix: overlay на whitesur-kde, гоняет патч по sddm/*/Main.qml
- theming.nix: включить whitesur-cursors (kwin писал
  `Failed to load cursor theme "WhiteSur-cursors"`)
- kde.nix: sddm.extraPackages = plasma-desktop + qtsvg (требование пакета)

Проверено на rydiwo (поколение 91, display-manager перезапущен):
Fallback to embedded theme — 0 раз, VirtualKeyboardLoader is not a type — 0,
гритер создал вью на реальном выходе (DSI-1, 1324x828).
2026-11-05 21:17:03 +03:00

27 lines
1.0 KiB
Nix

{
inputs,
...
}:
self: super: {
rovr = inputs.self.packages.x86_64-linux.rovr;
pcbu-desktop = inputs.self.packages.x86_64-linux.pcbu-desktop;
# The SDDM themes shipped by whitesur-kde (2024-11-18) are forks of the
# breeze greeter theme and still instantiate `VirtualKeyboardLoader`, a type
# that plasma-workspace >= 6.6 removed from org.kde.breeze.components in
# favour of the KWin virtual-keyboard integration. sddm-greeter-qt6 refuses
# to load such a theme and silently falls back to the plain embedded one:
# Main.qml:316:9: VirtualKeyboardLoader is not a type
# Fallback to embedded theme
# (seen on rydiwo). Rewrite the loader to the API the current breeze theme
# uses; see overlays/patch-whitesur-sddm.pl.
whitesur-kde = super.whitesur-kde.overrideAttrs (old: {
nativeBuildInputs = (old.nativeBuildInputs or [ ]) ++ [ super.perl ];
postPatch = (old.postPatch or "") + ''
for f in sddm/*/Main.qml; do
${super.perl}/bin/perl ${./patch-whitesur-sddm.pl} "$f"
done
'';
});
}