hyprland: pin to upstream flake for 0.55.0 (includes resize-lag fix)

nixos-25.11 ships 0.52.1; the fix for XWayland resize lag landed in
0.52.2, and upstream is already on 0.55.0 by now. Add hyprwm/Hyprland
as a flake input and route programs.hyprland and the HM wayland module
through it. Doesn't `follows` our nixpkgs — upstream Hyprland needs
newer stdenv than 25.11 provides.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
ediblerope 2026-05-11 11:48:36 +01:00
parent 9dda5b6371
commit 968f7d8be5
3 changed files with 504 additions and 7 deletions

View file

@ -5,6 +5,10 @@
programs.hyprland = {
enable = true;
xwayland.enable = true;
# Pin to upstream Hyprland flake — 25.11's nixpkgs only has 0.52.1
# and the resize-lag fix landed in 0.52.2.
package = inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.hyprland;
portalPackage = inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.xdg-desktop-portal-hyprland;
};
xdg.portal = {
@ -51,10 +55,11 @@
polkit_gnome
];
home-manager.users.fred = { config, lib, pkgs, ... }: {
home-manager.users.fred = { config, lib, pkgs, inputs, ... }: {
wayland.windowManager.hyprland = {
enable = true;
systemd.variables = [ "--all" ];
package = inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.hyprland;
settings = {
# Use the EDID-native 180 Hz mode. 190 Hz is technically faster