meta: Add back hyprland to phone

Will be trying this again since Hyprland offers a substantial
performance improvement over Phosh and hardware accelerated videos
are broken anyway with the lower cpu speed.
This commit is contained in:
Donovan Glover 2024-07-14 17:09:46 -04:00
parent 051c903154
commit 3ef29d27c2
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65
2 changed files with 20 additions and 3 deletions

View File

@ -7,20 +7,33 @@ in
imports = attrValues self.nixosModules;
nixpkgs.overlays = attrValues {
inherit (self.overlays) phinger-cursors;
inherit (self.overlays)
phinger-cursors
hyprland
;
};
home-manager.sharedModules = attrValues {
inherit (self.homeManagerModules)
dunst
eww
eza
fcitx
fish
git
gpg
gtk
htop
hyprland
ironbar
kitty
librewolf
mpv
ncmpcpp
neovim
starship
swayosd
thunar
xdg-user-dirs
xresources
;

View File

@ -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
{
@ -40,7 +44,7 @@ in
hardware.graphics.enable32Bit = mkIf (!phone) true;
programs = {
hyprland.enable = mkIf (!container && !phone) true;
hyprland.enable = mkIf (!container) true;
cdemu.enable = mkIf (!phone) true;
thunar = mkIf (!phone) {
@ -94,7 +98,7 @@ in
};
initial_session = {
command = "${pkgs.hyprland}/bin/Hyprland";
command = "${if phone then legacyHyprland else pkgs.hyprland}/bin/Hyprland";
user = username;
};
};