Compare commits

...

2 Commits

2 changed files with 99 additions and 79 deletions

View File

@ -15,11 +15,12 @@ in
};
xdg.configFile = let
format = pkgs.formats.ini { };
format = pkgs.formats.iniWithGlobalSection { };
in {
"fcitx5/profile" = {
force = true;
source = format.generate "fcitx5-profile" {
sections = {
"Groups/0" = {
Name = "Default";
"Default Layout" = "us";
@ -42,8 +43,10 @@ in
};
};
};
};
"fcitx5/config".source = format.generate "fcitx5-config" {
sections = {
Hotkey = {
# Enumerate when press trigger key repeatedly
EnumerateWithTriggerKeys = "True";
@ -110,6 +113,21 @@ in
};
};
"fcitx5/conf/classicui.conf".source = format.generate "fcitx5-classicui.conf" {
globalSection = {
Theme = "Material-Color";
PerScreenDPI = "True";
# Font = "";
"Vertical Candidate List" = "True";
};
};
};
xdg.dataFile."fcitx5/themes/Material-Color" = {
recursive = true;
source = "${pkgs.fcitx5-material-color}/share/fcitx5/themes/Material-Color-orange";
};
systemd.user.services.fcitx5-daemon = {
Service.Restart="on-failure";
Service.ExecStart = lib.mkForce "${fcitx5Package}/bin/fcitx5";

View File

@ -9,6 +9,8 @@
./services/stable-diffusion.nix
./services/tailscale.nix
./services/keybase.nix
];
boot.binfmt.emulatedSystems = [
"x86_64-windows"
"aarch64-linux"