hyprland: migrate to Lua config (Hyprland 0.55+)

Switch Gaming and Macbook to home-manager unstable which has
configType = "lua" support. Converts the full Hyprland config from
deprecated hyprlang to native Lua:

- flake: add home-manager unstable input for Gaming/Macbook
- hyprland.nix: configType = "lua", settings.config for static sections,
  extraConfig for env/startup/animations/binds/window-rules
- hosts: monitor config updated to hl.monitor({}) table format

Eliminates the windowrulev2 deprecation banner.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
rope 2026-05-17 20:38:30 +01:00
parent 07ee7b86df
commit 2156ce4138
5 changed files with 246 additions and 217 deletions

View file

@ -79,8 +79,12 @@
};
home-manager.users.fred = { ... }: {
wayland.windowManager.hyprland.settings.monitor =
[ "DP-2,3440x1440@180,0x0,1" ];
wayland.windowManager.hyprland.settings.monitor = [{
output = "DP-2";
mode = "3440x1440@180";
position = "0x0";
scale = 1;
}];
home.file.".local/share/Steam/compatibilitytools.d/Proton-CachyOS Latest".source =
inputs.proton-cachyos-nix.packages.x86_64-linux.proton-cachyos-x86_64-v3.steamcompattool;

View file

@ -34,8 +34,12 @@
};
home-manager.users.fred = { pkgs, ... }: {
wayland.windowManager.hyprland.settings.monitor =
[ ",preferred,auto,auto" ];
wayland.windowManager.hyprland.settings.monitor = [{
output = "";
mode = "preferred";
position = "auto";
scale = "auto";
}];
# wob reads 0-100 integers from a FIFO and shows a progress bar overlay
systemd.user.services.wob = {