mirror of
https://github.com/donovanglover/nix-config.git
synced 2024-11-22 08:14:00 +01:00
desktop: Support japanese/wine by default
Simplifies things a bit since my target audience includes those interested in the Japanese language. Opinionated defaults like this makes it easier for end-users to be immediately productive without having to spend time configuring things.
This commit is contained in:
parent
5afd2f2b49
commit
00135526e7
@ -21,11 +21,6 @@ in
|
||||
../home/yazi.nix
|
||||
];
|
||||
|
||||
modules.desktop = {
|
||||
japanese = true;
|
||||
wine = true;
|
||||
};
|
||||
|
||||
environment = {
|
||||
defaultPackages = [ ];
|
||||
variables.TERM = "xterm-kitty";
|
||||
|
@ -25,9 +25,7 @@ in
|
||||
};
|
||||
|
||||
desktop = {
|
||||
japanese = true;
|
||||
bloat = true;
|
||||
wine = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
@ -3,7 +3,7 @@
|
||||
let
|
||||
inherit (lib) mkEnableOption mkIf mkMerge;
|
||||
inherit (config.modules.system) username;
|
||||
inherit (cfg) japanese bloat wine gnome plasma;
|
||||
inherit (cfg) bloat gnome plasma;
|
||||
inherit (builtins) attrValues;
|
||||
inherit (nix-config.packages.${pkgs.system}) aleo-fonts;
|
||||
|
||||
@ -20,19 +20,17 @@ in
|
||||
};
|
||||
|
||||
options.modules.desktop = {
|
||||
japanese = mkEnableOption "Japanese support (fcitx, anki, kanjidraw, etc.)";
|
||||
bloat = mkEnableOption "GUI applications like Logseq";
|
||||
wine = mkEnableOption "wine support";
|
||||
gnome = mkEnableOption "GNOME specialization";
|
||||
plasma = mkEnableOption "Plasma specialization";
|
||||
};
|
||||
|
||||
config = {
|
||||
hardware.opengl.driSupport32Bit = mkIf wine true;
|
||||
hardware.opengl.driSupport32Bit = true;
|
||||
|
||||
programs = {
|
||||
hyprland.enable = true;
|
||||
cdemu.enable = mkIf wine true;
|
||||
cdemu.enable = true;
|
||||
|
||||
thunar = {
|
||||
enable = true;
|
||||
@ -43,7 +41,7 @@ in
|
||||
};
|
||||
};
|
||||
|
||||
i18n.inputMethod = mkIf japanese {
|
||||
i18n.inputMethod = {
|
||||
enabled = "fcitx5";
|
||||
|
||||
fcitx5 = {
|
||||
@ -80,11 +78,6 @@ in
|
||||
};
|
||||
|
||||
environment.systemPackages = mkMerge [
|
||||
(mkIf japanese (attrValues {
|
||||
inherit (pkgs) anki kanjidraw;
|
||||
inherit (nix-config.inputs.sakaya.packages.${pkgs.system}) sakaya;
|
||||
}))
|
||||
|
||||
(mkIf bloat (attrValues {
|
||||
inherit (pkgs)
|
||||
logseq
|
||||
@ -109,7 +102,8 @@ in
|
||||
}))
|
||||
|
||||
(attrValues {
|
||||
inherit (pkgs) pulseaudio glib;
|
||||
inherit (pkgs) anki kanjidraw pulseaudio glib;
|
||||
inherit (nix-config.inputs.sakaya.packages.${pkgs.system}) sakaya;
|
||||
inherit (pkgs.xfce) exo;
|
||||
})
|
||||
];
|
||||
|
Loading…
Reference in New Issue
Block a user