Move fcitx5 into own module
This commit is contained in:
parent
b808c6d94c
commit
3a89798c73
2 changed files with 15 additions and 17 deletions
14
fcitx5/default.nix
Normal file
14
fcitx5/default.nix
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
{
|
||||||
|
i18n.inputMethod = {
|
||||||
|
enabled = "fcitx5";
|
||||||
|
# Commented out, not working
|
||||||
|
#fcitx.engines = with pkgs.fcitx-engines; [ anthy ];
|
||||||
|
};
|
||||||
|
|
||||||
|
home.sessionVariables = {
|
||||||
|
GTK_IM_MDOULE = "fcitx";
|
||||||
|
QT_IM_MODULE = "fcitx";
|
||||||
|
XMODIFIERS = "@im=fcitx";
|
||||||
|
GLFW_IM_MODULE = "ibus"; # IME support in anthy
|
||||||
|
};
|
||||||
|
}
|
|
@ -7,6 +7,7 @@ in
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
../vim.nix
|
../vim.nix
|
||||||
|
../fcitx5
|
||||||
../wallpaper.nix
|
../wallpaper.nix
|
||||||
../picom.nix
|
../picom.nix
|
||||||
../i3.nix
|
../i3.nix
|
||||||
|
@ -39,12 +40,6 @@ in
|
||||||
platformTheme = "gtk";
|
platformTheme = "gtk";
|
||||||
};
|
};
|
||||||
|
|
||||||
i18n.inputMethod = {
|
|
||||||
enabled = "fcitx5";
|
|
||||||
# Commented out, not working
|
|
||||||
# fcitx.engines = with pkgs.fcitx-engines; [ anthy ];
|
|
||||||
};
|
|
||||||
|
|
||||||
home = {
|
home = {
|
||||||
username = "${user}";
|
username = "${user}";
|
||||||
homeDirectory = "/home/${user}";
|
homeDirectory = "/home/${user}";
|
||||||
|
@ -62,18 +57,7 @@ in
|
||||||
firefox
|
firefox
|
||||||
discord
|
discord
|
||||||
gnome.nautilus
|
gnome.nautilus
|
||||||
|
|
||||||
# Configuration applications
|
|
||||||
fcitx5-configtool
|
|
||||||
];
|
];
|
||||||
|
|
||||||
sessionVariables = {
|
|
||||||
EDITOR = "vim";
|
|
||||||
GTK_IM_MDOULE = "fcitx";
|
|
||||||
QT_IM_MODULE = "fcitx";
|
|
||||||
XMODIFIERS = "@im=fcitx";
|
|
||||||
GLFW_IM_MODULE = "ibus"; # IME support in anthy
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
programs.bash = {
|
programs.bash = {
|
||||||
|
|
Loading…
Add table
Reference in a new issue