mirror of
https://github.com/donovanglover/nix-config.git
synced 2024-11-22 16:23:57 +01:00
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:
parent
051c903154
commit
3ef29d27c2
@ -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
|
||||
;
|
||||
|
@ -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;
|
||||
};
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user