fix(defaults/jp): remove due to inconsistent application

This commit is contained in:
Elec3137 2026-04-02 08:30:22 -07:00
commit 7f1a4696e7
No known key found for this signature in database
2 changed files with 0 additions and 67 deletions

View file

@ -10,7 +10,6 @@ let
in in
{ {
imports = [ imports = [
./jp.nix
./plasma.nix ./plasma.nix
./browsers.nix ./browsers.nix
@ -29,7 +28,6 @@ in
config = lib.mkIf cfg.enable { config = lib.mkIf cfg.enable {
nixowos.${name} = lib.mkDefault { nixowos.${name} = lib.mkDefault {
jp.enable = true;
plasma.enable = config.services.desktopManager.plasma6.enable; plasma.enable = config.services.desktopManager.plasma6.enable;
browsers.enable = true; browsers.enable = true;

View file

@ -1,65 +0,0 @@
{
pkgs,
lib,
config,
...
}:
let
name = "jp";
cfg = config.nixowos.defaults.${name};
in
{
options.nixowos.defaults.${name} = {
enable = lib.mkEnableOption name;
};
config = lib.mkIf cfg.enable {
# for typing in japanese
i18n.inputMethod = {
# set this for the defaults to be realized!
# enable = true;
type = lib.mkDefault "fcitx5";
fcitx5 = {
waylandFrontend = lib.mkDefault true;
addons =
with pkgs;
lib.mkIf config.nixowos.allowAddingPackages [
fcitx5-mozc # japanese module
fcitx5-gtk
];
settings = lib.mkDefault {
globalOptions = {
# also require "alt" for triggering IME
# this is to avoid conflicts with other apps/games
"Hotkey/TriggerKeys"."0" = "Control+Alt+space";
};
# basic configuration for switching between normal mode and mozc
inputMethod = {
"Groups/0" = {
Name = "Default";
"Default Layout" = "us";
DefaultIM = "mozc";
};
"Groups/0/Items/0" = {
Name = "keyboard-us";
Layout = "us";
};
"Groups/0/Items/1" = {
Name = "mozc";
Layout = "us";
};
GroupOrder."0" = "Default";
};
addons.classicui.globalSection.Theme = lib.mkIf config.services.desktopManager.plasma6.enable "plasma";
};
};
};
};
}