上传文件至「/」
This commit is contained in:
@@ -2,8 +2,8 @@
|
||||
|
||||
{
|
||||
# ⚠️ 极其重要:替换成你的实际系统用户名
|
||||
home.username = "test";
|
||||
home.homeDirectory = "/home/test";
|
||||
home.username = "luodh";
|
||||
home.homeDirectory = "/home/luodh";
|
||||
|
||||
# 你的个人日常软件全写在这里!
|
||||
home.packages = with pkgs; [
|
||||
@@ -29,25 +29,51 @@
|
||||
nodejs
|
||||
pnpm
|
||||
kdePackages.kate
|
||||
rime-ice
|
||||
wemeet
|
||||
];
|
||||
|
||||
# 用 Home Manager 固定 Fcitx5 输入法配置,仅保留拼音
|
||||
home.file.".config/fcitx5/profile".text = ''
|
||||
[Groups/0]
|
||||
Name=Default
|
||||
Default Layout=us
|
||||
DefaultIM=pinyin
|
||||
# Rime 输入法配置(雾凇拼音)
|
||||
home.file.".local/share/fcitx5/rime/default.custom.yaml".text = ''
|
||||
patch:
|
||||
schema_list:
|
||||
- schema: rime_ice
|
||||
menu/page_size: 7
|
||||
'';
|
||||
|
||||
[Groups/0/Items/0]
|
||||
Name=keyboard-us
|
||||
Layout=
|
||||
xdg.configFile."fcitx5/profile" = {
|
||||
force = true;
|
||||
text = ''
|
||||
[Groups/0]
|
||||
Name=Default
|
||||
Default Layout=us
|
||||
DefaultIM=keyboard-us
|
||||
|
||||
[Groups/0/Items/1]
|
||||
Name=pinyin
|
||||
Layout=
|
||||
[Groups/0/Items/0]
|
||||
Name=keyboard-us
|
||||
Layout=
|
||||
|
||||
[GroupOrder]
|
||||
0=Default
|
||||
[Groups/0/Items/1]
|
||||
Name=rime
|
||||
Layout=
|
||||
|
||||
[GroupOrder]
|
||||
0=Default
|
||||
'';
|
||||
};
|
||||
|
||||
home.activation.setupRimeIce = config.lib.dag.entryAfter ["writeBoundary"] ''
|
||||
RIME_DIR="$HOME/.local/share/fcitx5/rime"
|
||||
mkdir -p "$RIME_DIR"
|
||||
for item in ${pkgs.rime-data}/share/rime-data/*; do
|
||||
name=$(basename "$item")
|
||||
[ -e "$RIME_DIR/$name" ] || ln -sf "$item" "$RIME_DIR"
|
||||
done
|
||||
for item in ${pkgs.rime-ice}/share/rime-data/*; do
|
||||
name=$(basename "$item")
|
||||
[ -e "$RIME_DIR/$name" ] && rm -rf "$RIME_DIR/$name"
|
||||
ln -sf "$item" "$RIME_DIR"
|
||||
done
|
||||
'';
|
||||
|
||||
home.sessionPath = [
|
||||
@@ -88,10 +114,6 @@
|
||||
"XLbInptAccelProfileFlat" = true; # 平坦加速曲线
|
||||
};
|
||||
};
|
||||
|
||||
# 虚拟键盘 / 输入法设置为 fcitx5
|
||||
configFile."kwinrc"."Wayland"."InputMethod" =
|
||||
"${pkgs.fcitx5}/share/applications/org.fcitx.Fcitx5.desktop";
|
||||
};
|
||||
|
||||
# 这个版本号不要改!它不是软件版本,而是系统状态标识
|
||||
|
||||
Reference in New Issue
Block a user