Files
nixos/home/nvchad.nix
luochen570 c92c904e76 chore: clean up and optimize nixos configuration
- fix: nvidia.nix missing semicolon (build error)
- remove: ranger, vim from core/pkg.nix (yazi + neovim covers)
- remove: htop duplicate in home/pkg.nix (keep in system)
- replace: neofetch with fastfetch in home/pkg.nix
- remove: nixd LSP, keep nil only in nvchad.nix
- remove: empty server/pkg.nix and no-op server/firewall.nix
- remove: redundant services.pulseaudio.enable = false default
- add: comprehensive README.md documenting architecture
2026-05-24 10:36:23 +08:00

29 lines
538 B
Nix

{ config, pkgs, inputs, system, ... }:
{
# 导入 NvChad 模块
imports = [
inputs.nix4nvchad.homeManagerModules.default
];
programs.nvchad = {
enable = true;
# NvChad 需要的额外包
extraPackages = with pkgs; [
# LSP 服务器
nil # Nix LSP
marksman # Markdown LSP
# 格式化工具
nixpkgs-fmt
shfmt
];
};
# 设置默认编辑器
home.sessionVariables = {
EDITOR = "nvim";
VISUAL = "nvim";
};
}