fix(hyprland): use normal config discovery

This commit is contained in:
2026-10-10 13:07:29 -04:00
parent 6b540b2edb
commit d02913be46

View File

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