mirror of
https://github.com/donovanglover/nix-config.git
synced 2025-01-25 23:28:40 +01:00
desktop: Add phosh support
This should make it easier to switch between hyprland and phosh.
This commit is contained in:
parent
abc5dfee07
commit
de2d3550d0
@ -4,7 +4,7 @@ let
|
|||||||
inherit (lib) mkEnableOption mkIf mkMerge mkOption;
|
inherit (lib) mkEnableOption mkIf mkMerge mkOption;
|
||||||
inherit (lib.types) str float int;
|
inherit (lib.types) str float int;
|
||||||
inherit (config.modules.system) username;
|
inherit (config.modules.system) username;
|
||||||
inherit (cfg) bloat gnome plasma container theme opacity fontSize graphical phone;
|
inherit (cfg) bloat gnome plasma container theme opacity fontSize graphical phone phosh;
|
||||||
inherit (nix-config.packages.${pkgs.system}) aleo-fonts;
|
inherit (nix-config.packages.${pkgs.system}) aleo-fonts;
|
||||||
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;
|
||||||
@ -43,6 +43,7 @@ in
|
|||||||
plasma = mkEnableOption "Plasma specialization";
|
plasma = mkEnableOption "Plasma specialization";
|
||||||
container = mkEnableOption "disable some options for container performance";
|
container = mkEnableOption "disable some options for container performance";
|
||||||
graphical = mkEnableOption "xserver for graphical containers";
|
graphical = mkEnableOption "xserver for graphical containers";
|
||||||
|
phosh = mkEnableOption "use phosh instead of hyprland";
|
||||||
};
|
};
|
||||||
|
|
||||||
config = {
|
config = {
|
||||||
@ -61,7 +62,7 @@ in
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
i18n.inputMethod = mkIf (!phone) {
|
i18n.inputMethod = mkIf (!phosh) {
|
||||||
enabled = "fcitx5";
|
enabled = "fcitx5";
|
||||||
|
|
||||||
fcitx5 = {
|
fcitx5 = {
|
||||||
@ -79,20 +80,28 @@ in
|
|||||||
xserver = mkIf (!container || graphical) {
|
xserver = mkIf (!container || graphical) {
|
||||||
enable = true;
|
enable = true;
|
||||||
excludePackages = [ pkgs.xterm ];
|
excludePackages = [ pkgs.xterm ];
|
||||||
|
|
||||||
|
displayManager.lightdm.enable = mkIf phosh false;
|
||||||
|
|
||||||
|
desktopManager.phosh = mkIf phosh {
|
||||||
|
enable = true;
|
||||||
|
group = "users";
|
||||||
|
user = username;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
pipewire = mkIf (!phone) {
|
pipewire = mkIf (!phosh) {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
alsa = {
|
alsa = {
|
||||||
enable = true;
|
enable = true;
|
||||||
support32Bit = true;
|
support32Bit = mkIf (!phone) true;
|
||||||
};
|
};
|
||||||
|
|
||||||
pulse.enable = true;
|
pulse.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
greetd = mkIf (!container) {
|
greetd = mkIf (!container && !phosh) {
|
||||||
enable = true;
|
enable = true;
|
||||||
restart = false;
|
restart = false;
|
||||||
|
|
||||||
|
@ -21,7 +21,10 @@ in
|
|||||||
phone = true;
|
phone = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
desktop.phone = true;
|
desktop = {
|
||||||
|
phone = true;
|
||||||
|
phosh = true;
|
||||||
|
};
|
||||||
|
|
||||||
hardware = {
|
hardware = {
|
||||||
keyboardBinds = true;
|
keyboardBinds = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user