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

@ -9,6 +9,13 @@
inputs.nixpkgs.follows = "nixpkgs-stable";
};
# Unstable HM for Hyprland Lua config support (configType = "lua",
# available since HM master / future 26.05).
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
zen-browser = {
url = "github:0xc000022070/zen-browser-flake";
inputs = {
@ -36,6 +43,7 @@
, nixpkgs-stable
, nixpkgs
, home-manager-stable
, home-manager
, zen-browser
, nix-cachyos-kernel
, hyprland
@ -58,9 +66,9 @@
in
{
nixosConfigurations = {
FredOS-Gaming = mkHost "FredOS-Gaming" nixpkgs-stable home-manager-stable;
FredOS-Gaming = mkHost "FredOS-Gaming" nixpkgs-stable home-manager;
FredOS-Mediaserver = mkHost "FredOS-Mediaserver" nixpkgs-stable home-manager-stable;
FredOS-Macbook = mkHost "FredOS-Macbook" nixpkgs-stable home-manager-stable;
FredOS-Macbook = mkHost "FredOS-Macbook" nixpkgs-stable home-manager;
};
};
}