From 8ec23b15af7d2655a4d6e0e3225cd79015bc49f6 Mon Sep 17 00:00:00 2001 From: tux Date: Tue, 12 May 2026 21:59:50 +0530 Subject: [PATCH] fix(desktop): use lua config for hyprland --- modules/hm/desktop/hyprland.nix | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/modules/hm/desktop/hyprland.nix b/modules/hm/desktop/hyprland.nix index a0505d5..6ff37ef 100644 --- a/modules/hm/desktop/hyprland.nix +++ b/modules/hm/desktop/hyprland.nix @@ -1,6 +1,6 @@ { flake.modules.homeManager.desktop = - { pkgs, ... }: + { config, pkgs, ... }: { wayland.windowManager.hyprland = { enable = true; @@ -10,6 +10,15 @@ systemd.variables = [ "--all" ]; }; + # TODO: Hyprland 0.55 switched to Lua-based configuration. + # Until the Home Manager module is updated, we symlink our config instead. + home.file = { + ".config/hypr/config".source = + config.lib.file.mkOutOfStoreSymlink "${config.home.homeDirectory}/Projects/hypr/config"; + ".config/hypr/hyprland.lua".source = + config.lib.file.mkOutOfStoreSymlink "${config.home.homeDirectory}/Projects/hypr/hyprland.lua"; + }; + home.packages = with pkgs; [ ags awww