mirror of
https://github.com/donovanglover/nix-config.git
synced 2024-11-23 00:34:24 +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;
|
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
|
||||||
;
|
;
|
||||||
|
@ -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;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user