Compare commits

...

2 commits

Author SHA1 Message Date
9ca0a899a8
Add jlink udev rule to ludwig 2024-11-05 20:35:34 +01:00
2e91bb6963
Fix fcitx5 config overwriting error 2024-11-05 20:35:10 +01:00
3 changed files with 109 additions and 3 deletions

View file

@ -1,6 +1,107 @@
{pkgs, ...}: { {pkgs, ...}: {
xdg.configFile."fcitx5" = { # xdg.configFile."fcitx5" = {
source = ../../../../rsc/config/fcitx5; # source = ../../../../rsc/config/fcitx5;
recursive = true; # recursive = true;
# };
xdg.configFile = {
"fcitx5/config" = {
force = true;
text = ''
[Hotkey]
# Enumerate when press trigger key repeatedly
EnumerateWithTriggerKeys=True
# Temporally switch between first and current Input Method
AltTriggerKeys=
# Enumerate Input Method Forward
EnumerateForwardKeys=
# Enumerate Input Method Backward
EnumerateBackwardKeys=
# Skip first input method while enumerating
EnumerateSkipFirst=False
# Enumerate Input Method Group Forward
EnumerateGroupForwardKeys=
# Enumerate Input Method Group Backward
EnumerateGroupBackwardKeys=
# Activate Input Method
ActivateKeys=
# Deactivate Input Method
DeactivateKeys=
# Default Previous page
PrevPage=
# Default Next page
NextPage=
# Default Previous Candidate
PrevCandidate=
# Default Next Candidate
NextCandidate=
# Toggle embedded preedit
TogglePreedit=
[Hotkey/TriggerKeys]
0=Control+Alt+space
[Behavior]
# Active By Default
ActiveByDefault=False
# Share Input State
ShareInputState=No
# Show preedit in application
PreeditEnabledByDefault=True
# Show Input Method Information when switch input method
ShowInputMethodInformation=True
# Show Input Method Information when changing focus
showInputMethodInformationWhenFocusIn=False
# Show compact input method information
CompactInputMethodInformation=True
# Show first input method information
ShowFirstInputMethodInformation=True
# Default page size
DefaultPageSize=5
# Override Xkb Option
OverrideXkbOption=False
# Custom Xkb Option
CustomXkbOption=
# Force Enabled Addons
EnabledAddons=
# Force Disabled Addons
DisabledAddons=
# Preload input method to be used by default
PreloadInputMethod=True
# Allow input method in the password field
AllowInputMethodForPassword=False
# Show preedit text when typing password
ShowPreeditForPassword=False
# Interval of saving user data in minutes
AutoSavePeriod=30
'';
};
"fcitx5/profile" = {
force = true;
text = ''
[Groups/0]
# Group Name
Name="Group 1"
# Layout
Default Layout=de
# Default Input Method
DefaultIM=mozc
[Groups/0/Items/0]
# Name
Name=keyboard-de
# Layout
Layout=
[Groups/0/Items/1]
# Name
Name=mozc
# Layout
Layout=
[GroupOrder]
0="Group 1"
'';
};
}; };
} }

View file

@ -5,6 +5,7 @@
fcitx5-mozc fcitx5-mozc
fcitx5-gtk fcitx5-gtk
]; ];
fcitx5.waylandFrontend = true;
}; };
fonts.packages = with pkgs; [ fonts.packages = with pkgs; [
noto-fonts-cjk-sans noto-fonts-cjk-sans

View file

@ -58,11 +58,15 @@
config = { config = {
# Disable if you don't want unfree packages # Disable if you don't want unfree packages
allowUnfree = true; allowUnfree = true;
segger-jlink.acceptLicense = true;
permittedInsecurePackages = ["segger-jlink-qt4-794l"];
}; };
}; };
networking.hostName = "ludwig"; networking.hostName = "ludwig";
services.udev.packages = [pkgs.segger-jlink];
# environment.sessionVariables.QT_QPA_PLATFORM = "wayland"; # environment.sessionVariables.QT_QPA_PLATFORM = "wayland";
services.xserver.displayManager.gdm.enable = true; services.xserver.displayManager.gdm.enable = true;
programs = { programs = {