104 lines
2.1 KiB
Nix
104 lines
2.1 KiB
Nix
{ config, pkgs, ... }:
|
|
|
|
{
|
|
# ⚠️ 极其重要:替换成你的实际系统用户名
|
|
home.username = "test";
|
|
home.homeDirectory = "/home/test";
|
|
|
|
# 你的个人日常软件全写在这里!
|
|
home.packages = with pkgs; [
|
|
qq
|
|
fastfetch
|
|
jetbrains-toolbox
|
|
google-chrome
|
|
neovim
|
|
telegram-desktop
|
|
wechat
|
|
gpu-screen-recorder
|
|
gpu-screen-recorder-gtk
|
|
android-tools
|
|
openjdk21
|
|
cloudflared
|
|
obsidian
|
|
zed-editor
|
|
postgresql
|
|
rclone
|
|
feishu
|
|
wpsoffice-cn
|
|
flutter
|
|
nodejs
|
|
pnpm
|
|
kdePackages.kate
|
|
];
|
|
|
|
# 用 Home Manager 固定 Fcitx5 输入法配置,仅保留拼音
|
|
home.file.".config/fcitx5/profile".text = ''
|
|
[Groups/0]
|
|
Name=Default
|
|
Default Layout=us
|
|
DefaultIM=pinyin
|
|
|
|
[Groups/0/Items/0]
|
|
Name=keyboard-us
|
|
Layout=
|
|
|
|
[Groups/0/Items/1]
|
|
Name=pinyin
|
|
Layout=
|
|
|
|
[GroupOrder]
|
|
0=Default
|
|
'';
|
|
|
|
home.sessionPath = [
|
|
"$HOME/.npm-global/bin"
|
|
];
|
|
|
|
# 让 nix-shell 等传统命令也能安装 unfree 软件
|
|
xdg.configFile."nixpkgs/config.nix".text = "{ allowUnfree = true; }";
|
|
|
|
programs.fish = {
|
|
enable = true;
|
|
interactiveShellInit = ''
|
|
fish_add_path "$HOME/.npm-global/bin"
|
|
'';
|
|
};
|
|
|
|
programs.git = {
|
|
enable = true;
|
|
settings = {
|
|
user = {
|
|
name = "Aloys23";
|
|
email = "aloys233@gmail.com";
|
|
};
|
|
|
|
init.defaultBranch = "main";
|
|
pull.rebase = false;
|
|
};
|
|
};
|
|
|
|
# Plasma 桌面环境接管
|
|
programs.plasma = {
|
|
enable = true;
|
|
|
|
# 关闭鼠标加速度,灵敏度保持默认
|
|
configFile."kcminputrc" = {
|
|
"Mouse" = {
|
|
"XLbInptPointerAccel" = 0.0; # 关闭鼠标加速度
|
|
"XLbInptAccelProfileFlat" = true; # 平坦加速曲线
|
|
};
|
|
};
|
|
|
|
# 虚拟键盘 / 输入法设置为 fcitx5
|
|
configFile."kwinrc"."Wayland"."InputMethod" =
|
|
"${pkgs.fcitx5}/share/applications/org.fcitx.Fcitx5.desktop";
|
|
};
|
|
|
|
# 这个版本号不要改!它不是软件版本,而是系统状态标识
|
|
home.stateVersion = "25.11";
|
|
|
|
|
|
# 让 Home Manager 管理自己
|
|
programs.home-manager.enable = true;
|
|
}
|