添加 nixpkgs unfree 配置以支持 nix-shell 安装微信等闭源软件

This commit is contained in:
2026-05-29 22:59:06 +08:00
parent dc1bc1d9ad
commit 055e13848c
+6
View File
@@ -15,8 +15,14 @@
telegram-desktop telegram-desktop
htop htop
btop btop
wechat
gpu-screen-recorder
gpu-screen-recorder-gtk
]; ];
# 让 nix-shell 等传统命令也能安装 unfree 软件
xdg.configFile."nixpkgs/config.nix".text = "{ allowUnfree = true; }";
# 用 Home Manager 固定 Fcitx5 输入法配置,仅保留拼音 # 用 Home Manager 固定 Fcitx5 输入法配置,仅保留拼音
home.file.".config/fcitx5/profile".text = '' home.file.".config/fcitx5/profile".text = ''
[Groups/0] [Groups/0]