fix(hyprland): force lua config at login

This commit is contained in:
2026-10-10 13:02:47 -04:00
parent 7cf7ad819f
commit 6b540b2edb

View File

@@ -6,6 +6,9 @@
}:
# Text login: greetd running the tuigreet greeter, which starts the session
# through the universal Wayland session manager.
let
hyprlandConfig = "/home/${config.user.name}/.config/hypr/hyprland.lua";
in
{
options.modules.desktop.session.login.enable =
lib.mkEnableOption "greetd with the tuigreet text greeter";
@@ -15,7 +18,7 @@
enable = true;
settings.default_session.command =
"${lib.getExe pkgs.tuigreet} --time --remember "
+ "--cmd 'uwsm start -e -D Hyprland hyprland.desktop'";
+ "--cmd 'HYPRLAND_CONFIG=${hyprlandConfig} uwsm start -e -D Hyprland hyprland.desktop'";
};
};
}