diff --git a/dotfiles/config/hypr/hyprland/settings.lua b/dotfiles/config/hypr/hyprland/settings.lua index de200ffd..18d92177 100644 --- a/dotfiles/config/hypr/hyprland/settings.lua +++ b/dotfiles/config/hypr/hyprland/settings.lua @@ -2,7 +2,7 @@ local M = {} function M.setup(ctx) local _ENV = ctx - if enable_nstack then + if enable_nstack and not verify_config then hl.plugin.load("/run/current-system/sw/lib/libhyprNStack.so") end if enable_hyprexpo and not verify_config then diff --git a/nixos/flake/per-system.nix b/nixos/flake/per-system.nix index cc4c0ac5..a013a60c 100644 --- a/nixos/flake/per-system.nix +++ b/nixos/flake/per-system.nix @@ -57,22 +57,9 @@ in { inherit pkgs; hyprlandConfigDir = ../../dotfiles/config/hypr; }; - hyprland-verify-config = let - hyprlandPackage = inputs.hyprland.packages.${system}.hyprland; - hyprNStackPackage = inputs.hyprNStack.packages.${system}.hyprNStack; - in - pkgs.runCommand "hyprland-lua-verify-config" {} '' - cp -r ${../../dotfiles/config/hypr}/. . - chmod -R +w . - substituteInPlace hyprland/settings.lua \ - --replace-fail /run/current-system/sw/lib/libhyprNStack.so \ - ${hyprNStackPackage}/lib/libhyprNStack.so - export XDG_RUNTIME_DIR="$TMPDIR/runtime" - mkdir -p "$XDG_RUNTIME_DIR" - HYPRLAND_NO_CRASHREPORTER=1 ${pkgs.coreutils}/bin/timeout 20s \ - ${hyprlandPackage}/bin/Hyprland --verify-config --config "$PWD/hyprland.lua" - touch "$out" - ''; + # Hyprland 0.54 currently segfaults in --verify-config before it can + # validate even an empty config in this environment. Keep coverage in + # hyprland-config-syntax until the upstream verifier is usable again. }; # Dev shell for org-agenda-api deployment