actually get japanese working

This commit is contained in:
RingOfStorms (Joshua Bell) 2025-12-11 16:32:00 -06:00
parent 598ee77f6e
commit 73fbe39287
3 changed files with 56 additions and 28 deletions

View file

@ -107,7 +107,6 @@ in
};
services.desktopManager.plasma6.enable = true;
# Audio / IPC
services.pipewire = {
enable = true;
@ -131,34 +130,39 @@ in
# KDEConnect
programs.kdeconnect.enable = true;
# Useful KDE packages
environment.systemPackages = with pkgs; [
# Core KDE tools
kdePackages.kde-gtk-config
kdePackages.konsole
kdePackages.dolphin
kdePackages.spectacle
kdePackages.plasma-browser-integration
# kdePackages.plasma-workspace-wallpapers
# Useful KDE packages
environment.systemPackages = with pkgs; [
# Core KDE tools
kdePackages.kde-gtk-config
kdePackages.konsole
kdePackages.dolphin
kdePackages.spectacle
kdePackages.plasma-browser-integration
# kdePackages.plasma-workspace-wallpapers
# Panel applets required for widgets
kdePackages.plasma-nm # org.kde.plasma.networkmanagement
kdePackages.bluedevil # org.kde.plasma.bluetooth
kdePackages.plasma-pa # org.kde.plasma.volume
kdePackages.kdeplasma-addons # extra widgets
kdePackages.powerdevil # power management services
# Panel applets required for widgets
kdePackages.plasma-nm # org.kde.plasma.networkmanagement
kdePackages.bluedevil # org.kde.plasma.bluetooth
kdePackages.plasma-pa # org.kde.plasma.volume
kdePackages.kdeplasma-addons # extra widgets
kdePackages.powerdevil # power management services
# Wayland clipboard helpers
wl-clipboard
wl-clip-persist
];
# Wayland clipboard helpers
wl-clipboard
wl-clip-persist
];
# Keyboard like sway/i3
console.useXkbConfig = true;
services.xserver.xkb = {
layout = "us";
options = "caps:escape";
};
services.keyd = {
enable = true;
keyboards.default.settings = {
main = {
capslock = "escape";
};
};
};
# Home Manager modules (plasma-manager + our HM layer)
@ -247,6 +251,30 @@ in
};
})
# Japanese
({
i18n.inputMethod = {
enable = true;
type = "fcitx5";
fcitx5 = {
waylandFrontend = true;
ignoreUserConfig = true;
addons = with pkgs; [ fcitx5-mozc ];
settings = {
inputMethod = {
"Groups/0" = {
Name = "Default";
"Default Layout" = "us";
DefaultIM = "keyboard-us";
};
"Groups/0/Items/0".Name = "keyboard-us";
"Groups/0/Items/1".Name = "mozc";
};
};
};
};
})
{
assertions = [
{

View file

@ -58,9 +58,7 @@ in
keyboard = {
layouts = [
{ layout = "us"; }
{ layout = "jp"; }
];
options = [ "caps:escape" ];
};
mice = [
# {
@ -304,7 +302,9 @@ in
configFile = {
kwalletrc.Wallet.Enabled = false;
plasmanotifyrc.Notifications.PopupPosition = "TopRight";
ksmserverrc.General.loginMode = "restorePreviousLogout";
kwinrc.Wayland.InputMethod =
"/run/current-system/sw/share/applications/org.fcitx.Fcitx5.desktop";
};
};
};

View file

@ -53,7 +53,7 @@ in
"Lock Session" = "Meta+Shift+L";
};
"KDE Keyboard Layout Switcher"."Switch to Next Keyboard Layout" = "Meta+K";
# "KDE Keyboard Layout Switcher"."Switch to Next Keyboard Layout" = "Meta+K";
};
# Custom hotkey commands