modified: flake.nix

new file:   home/git.nix
	new file:   home/nvchad.nix
	new file:   home/zsh.nix
	new file:   hosts/server/default.nix
	new file:   lib/mkHost.nix
	new file:   modules/wsl/wsl.nix
	new file:   profiles/server.nix
This commit is contained in:
luochen570
2026-02-27 12:03:01 +08:00
parent 51a1d0d178
commit 611d7c1c1f
8 changed files with 174 additions and 11 deletions

29
home/nvchad.nix Normal file
View File

@@ -0,0 +1,29 @@
{ config, pkgs, inputs, system, ... }:
{
# 导入 NvChad 模块
imports = [
inputs.nix4nvchad.homeManagerModules.default
];
programs.nvchad = {
enable = true;
# 可选:添加你需要的语言服务器和工具
extraPackages = with pkgs; [
# LSP 服务器
nil # Nix LSP
nixd # Nix 语言服务器(另一种选择)
marksman # Markdown LSP
# 格式化工具
nixpkgs-fmt
shfmt
];
};
# 设置默认编辑器
home.sessionVariables = {
EDITOR = "nvim";
VISUAL = "nvim";
};
}