fix: move hyprland shell init to hyprland

This commit is contained in:
Mohammad Rafiq 2025-03-30 08:14:12 +08:00
parent 03abee8b66
commit a8c03f0261
No known key found for this signature in database
3 changed files with 10 additions and 6 deletions

View file

@ -4,6 +4,12 @@
...
}:
{
environment.loginShellInit = # sh
''
if [ -z "$WAYLAND_DISPLAY" ] && [ "$XDG_VTNR" -eq 1 ]; then
dbus-run-session Hyprland
fi
'';
programs.hyprland = {
enable = true;
package = inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.hyprland;