feat: NixOS 声明式配置(从 Arch + decman 迁移)
- flake.nix: NixOS + home-manager + nixos-wsl 三输入 - hosts/wsl + hosts/bare: WSL 与裸机共享模块,分主机配置 - modules/: base(CLI 工具) + dev(工具链+LSP) + docker + locale + shell - home/: zsh(oh-my-zsh+插件+别名) + git(delta) + starship + 工具集成 - scripts/install.sh: 一键安装脚本(WSL/裸机通用) - 原 bun/go 全局包 hack 改为 nixpkgs 声明式管理
This commit is contained in:
@@ -0,0 +1,49 @@
|
||||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
environment.systemPackages = with pkgs; [
|
||||
# ── 核心工具 ──
|
||||
curl
|
||||
git
|
||||
micro
|
||||
vim
|
||||
wget
|
||||
|
||||
# ── 现代 CLI 替代 ──
|
||||
bat # cat
|
||||
btop # top
|
||||
duf # df
|
||||
dust # du
|
||||
eza # ls
|
||||
fd # find
|
||||
jq # JSON
|
||||
procs # ps
|
||||
ripgrep # grep
|
||||
sd # sed
|
||||
xh # curl/httpie
|
||||
yq # YAML
|
||||
|
||||
# ── 文件管理 ──
|
||||
trash-cli
|
||||
yazi
|
||||
|
||||
# ── 系统信息 ──
|
||||
fastfetch
|
||||
tealdeer # tldr
|
||||
];
|
||||
|
||||
# ── Nix 设置 ──
|
||||
nix.settings = {
|
||||
experimental-features = [
|
||||
"nix-command"
|
||||
"flakes"
|
||||
];
|
||||
# 国内镜像(按需取消注释)
|
||||
# substituters = [
|
||||
# "https://mirrors.tuna.tsinghua.edu.cn/nix-channels/store"
|
||||
# "https://cache.nixos.org"
|
||||
# ];
|
||||
};
|
||||
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
}
|
||||
Reference in New Issue
Block a user