mirror of
https://github.com/donovanglover/nix-config.git
synced 2024-11-22 00:03:55 +01:00
meta: prefer isPhone over mkForce
This commit is contained in:
parent
2e0693f4ce
commit
60401813e6
@ -47,25 +47,4 @@ in
|
||||
|
||||
phone.enable = true;
|
||||
};
|
||||
|
||||
i18n.inputMethod.enable = mkForce false;
|
||||
|
||||
programs = {
|
||||
cdemu.enable = mkForce false;
|
||||
hyprland.enable = mkForce false;
|
||||
thunar.enable = mkForce false;
|
||||
};
|
||||
|
||||
services = {
|
||||
udisks2.enable = mkForce false;
|
||||
pipewire.enable = mkForce false;
|
||||
greetd.enable = mkForce false;
|
||||
};
|
||||
|
||||
boot = {
|
||||
binfmt.emulatedSystems = mkForce [ ];
|
||||
loader.systemd-boot.enable = mkIf (pkgs.system == "aarch64-linux") (mkForce false);
|
||||
};
|
||||
|
||||
hardware.graphics.enable32Bit = mkForce false;
|
||||
}
|
||||
|
@ -17,6 +17,8 @@ let
|
||||
|
||||
inherit (cfg) bloat;
|
||||
|
||||
isPhone = config.programs.calls.enable;
|
||||
|
||||
cfg = config.modules.desktop;
|
||||
in
|
||||
{
|
||||
@ -25,14 +27,14 @@ in
|
||||
};
|
||||
|
||||
config = {
|
||||
hardware.graphics.enable32Bit = true;
|
||||
hardware.graphics.enable32Bit = mkIf (!isPhone) true;
|
||||
|
||||
programs = {
|
||||
hyprland.enable = mkIf (!isContainer) true;
|
||||
cdemu.enable = true;
|
||||
hyprland.enable = mkIf (!isContainer && !isPhone) true;
|
||||
cdemu.enable = mkIf (!isPhone) true;
|
||||
|
||||
thunar = {
|
||||
enable = true;
|
||||
enable = mkIf (!isPhone) true;
|
||||
|
||||
plugins = with pkgs.xfce; [
|
||||
thunar-volman
|
||||
@ -40,7 +42,7 @@ in
|
||||
};
|
||||
};
|
||||
|
||||
i18n.inputMethod = {
|
||||
i18n.inputMethod = mkIf (!isPhone) {
|
||||
enable = true;
|
||||
type = "fcitx5";
|
||||
|
||||
@ -54,7 +56,7 @@ in
|
||||
};
|
||||
|
||||
services = {
|
||||
udisks2 = {
|
||||
udisks2 = mkIf (!isPhone) {
|
||||
enable = true;
|
||||
mountOnMedia = true;
|
||||
};
|
||||
@ -78,7 +80,7 @@ in
|
||||
displayManager.startx.enable = true;
|
||||
};
|
||||
|
||||
pipewire = {
|
||||
pipewire = mkIf (!isPhone) {
|
||||
enable = true;
|
||||
|
||||
alsa = {
|
||||
@ -89,7 +91,7 @@ in
|
||||
pulse.enable = true;
|
||||
};
|
||||
|
||||
greetd = mkIf (!isContainer) {
|
||||
greetd = mkIf (!isContainer && !isPhone) {
|
||||
enable = true;
|
||||
restart = false;
|
||||
|
||||
|
@ -90,7 +90,7 @@ in
|
||||
binfmt.emulatedSystems = [ "aarch64-linux" ];
|
||||
|
||||
loader = {
|
||||
systemd-boot = {
|
||||
systemd-boot = mkIf (!isPhone) {
|
||||
enable = true;
|
||||
editor = false;
|
||||
configurationLimit = 10;
|
||||
|
Loading…
Reference in New Issue
Block a user