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; imports = attrValues self.nixosModules;
nixpkgs.overlays = attrValues { nixpkgs.overlays = attrValues {
inherit (self.overlays) phinger-cursors; inherit (self.overlays)
phinger-cursors
hyprland
;
}; };
home-manager.sharedModules = attrValues { home-manager.sharedModules = attrValues {
inherit (self.homeManagerModules) inherit (self.homeManagerModules)
dunst
eww
eza eza
fcitx
fish fish
git git
gpg gpg
gtk gtk
htop htop
hyprland
ironbar
kitty
librewolf librewolf
mpv
ncmpcpp
neovim neovim
starship starship
swayosd
thunar
xdg-user-dirs xdg-user-dirs
xresources xresources
; ;

View File

@ -9,6 +9,10 @@ let
inherit (pkgs) phinger-cursors noto-fonts-cjk-sans maple-mono noto-fonts-emoji; inherit (pkgs) phinger-cursors noto-fonts-cjk-sans maple-mono noto-fonts-emoji;
inherit (builtins) attrValues; inherit (builtins) attrValues;
legacyHyprland = pkgs.hyprland.override {
legacyRenderer = true;
};
cfg = config.modules.desktop; cfg = config.modules.desktop;
in in
{ {
@ -40,7 +44,7 @@ in
hardware.graphics.enable32Bit = mkIf (!phone) true; hardware.graphics.enable32Bit = mkIf (!phone) true;
programs = { programs = {
hyprland.enable = mkIf (!container && !phone) true; hyprland.enable = mkIf (!container) true;
cdemu.enable = mkIf (!phone) true; cdemu.enable = mkIf (!phone) true;
thunar = mkIf (!phone) { thunar = mkIf (!phone) {
@ -94,7 +98,7 @@ in
}; };
initial_session = { initial_session = {
command = "${pkgs.hyprland}/bin/Hyprland"; command = "${if phone then legacyHyprland else pkgs.hyprland}/bin/Hyprland";
user = username; user = username;
}; };
}; };