docs: update Vietnamese input setup instructions in README

Add fcitx5-configtool addon and clarify that Unikey must be added via
fcitx5-configtool's Input Method tab, not through KDE Virtual Keyboard settings.
This commit is contained in:
2026-08-10 01:09:13 +07:00
parent 2238607011
commit 4cae1d0ed0
3 changed files with 22 additions and 14 deletions
+4 -6
View File
@@ -20,7 +20,7 @@ nixos-config/
- **KDE Plasma 6** on Wayland via SDDM - **KDE Plasma 6** on Wayland via SDDM
- **Vietnamese input** via fcitx5 + unikey (Telex/VNI) - **Vietnamese input** via fcitx5 + unikey (Telex/VNI)
- After switching, go to System Settings → Virtual Keyboard → select "Fcitx 5" - Open `fcitx5-configtool` → Input Method tab → add **Unikey**
- **Locale**: English UI, Vietnamese formats (currency, time, etc.), Asia/Ho_Chi_Minh timezone - **Locale**: English UI, Vietnamese formats (currency, time, etc.), Asia/Ho_Chi_Minh timezone
- **Pipewire** for audio - **Pipewire** for audio
- **Packages**: firefox, kate, claude-code, git - **Packages**: firefox, kate, claude-code, git
@@ -85,10 +85,8 @@ Commit the resulting `flake.lock` so future rebuilds use the exact same package
## Vietnamese input setup (fcitx5) ## Vietnamese input setup (fcitx5)
After first build: After first build:
1. Go to **System Settings → Input Devices → Virtual Keyboard** 1. Open **fcitx5-configtool**
2. Select **Fcitx 5** and apply 2. Go to the **Input Method** tab → add **Unikey**
3. In the system tray, right-click the fcitx5 icon → **Configure** 3. Switch between English/Vietnamese with **Super+Space**
4. Add **Unikey** as an input method
5. Switch between English/Vietnamese with **Super+Space**
Unikey supports both **Telex** (default) and **VNI** — configure in the Unikey settings. Unikey supports both **Telex** (default) and **VNI** — configure in the Unikey settings.
+6 -3
View File
@@ -4,9 +4,11 @@
imports = [ ./hardware-configuration.nix ]; imports = [ ./hardware-configuration.nix ];
# Bootloader # Bootloader
boot.loader.grub.enable = true; # boot.loader.grub.enable = true;
boot.loader.grub.device = "/dev/sda"; # boot.loader.grub.device = "/dev/sda";
boot.loader.grub.useOSProber = true; # boot.loader.grub.useOSProber = true;
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
# Enable flakes and nix-command # Enable flakes and nix-command
nix.settings.experimental-features = [ "nix-command" "flakes" ]; nix.settings.experimental-features = [ "nix-command" "flakes" ];
@@ -24,6 +26,7 @@
fcitx5.addons = with pkgs; [ fcitx5.addons = with pkgs; [
qt6Packages.fcitx5-unikey qt6Packages.fcitx5-unikey
fcitx5-gtk fcitx5-gtk
fcitx5-configtool
]; ];
}; };
+12 -5
View File
@@ -5,22 +5,29 @@
{ {
imports = imports =
[ (modulesPath + "/profiles/qemu-guest.nix") [ (modulesPath + "/installer/scan/not-detected.nix")
]; ];
boot.initrd.availableKernelModules = [ "ata_piix" "uhci_hcd" "virtio_pci" "virtio_scsi" "sd_mod" "sr_mod" ]; boot.initrd.availableKernelModules = [ "nvme" "ehci_pci" "xhci_pci" "usb_storage" "sd_mod" "sdhci_pci" ];
boot.initrd.kernelModules = [ ]; boot.initrd.kernelModules = [ ];
boot.kernelModules = [ ]; boot.kernelModules = [ "kvm-amd" ];
boot.extraModulePackages = [ ]; boot.extraModulePackages = [ ];
fileSystems."/" = fileSystems."/" =
{ device = "/dev/disk/by-uuid/51da3f97-16fa-4ed5-a12f-a4466b66359f"; { device = "/dev/disk/by-uuid/2a2c3132-502e-41cd-98c1-f18ee4b5bce2";
fsType = "ext4"; fsType = "ext4";
}; };
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/74FC-4814";
fsType = "vfat";
options = [ "fmask=0077" "dmask=0077" ];
};
swapDevices = swapDevices =
[ { device = "/dev/disk/by-uuid/7a05616d-d8d8-4fa5-9810-49118204c9f2"; } [ { device = "/dev/disk/by-uuid/18d7c34a-b3ad-4f98-82e7-a64072d9ff20"; }
]; ];
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
} }