From 0e95b8199915db364b9472df4cd91e3e2354178a Mon Sep 17 00:00:00 2001 From: Donovan Glover Date: Wed, 19 Jun 2024 19:53:31 -0400 Subject: [PATCH] desktop: Add hyprland support to phone with legacyRenderer Time will tell whether or not Hyprland will be preferred over phosh. --- modules/desktop.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/modules/desktop.nix b/modules/desktop.nix index c4add3ba..1572a12d 100644 --- a/modules/desktop.nix +++ b/modules/desktop.nix @@ -9,6 +9,10 @@ let inherit (pkgs) phinger-cursors noto-fonts-cjk-sans maple-mono noto-fonts-emoji; inherit (builtins) attrValues; + legacyHyprland = pkgs.hyprland.override { + legacyRenderer = true; + }; + cfg = config.modules.desktop; in { @@ -99,7 +103,7 @@ in }; initial_session = { - command = "${pkgs.hyprland}/bin/Hyprland"; + command = "${if phone then legacyHyprland else pkgs.hyprland}/bin/Hyprland"; user = username; }; };