3ccdd8d2e2
- 添加 system.primaryUser (nix-darwin 新要求) - 全局应用 overlays 解决 comment-checker 找不到的问题 - git/ssh/delta 选项迁移到 home-manager 新 API - 包改名: dockerfile-language-server, nixfmt, nixd - neovim withRuby=false, catppuccin homeModules 更名 - 更新 flake.lock (nixpkgs, home-manager, catppuccin)
59 lines
926 B
Nix
59 lines
926 B
Nix
{
|
|
inputs,
|
|
username,
|
|
pkgs,
|
|
lib,
|
|
...
|
|
}:
|
|
|
|
{
|
|
imports = [
|
|
inputs.catppuccin.homeModules.catppuccin
|
|
./shell
|
|
./dev
|
|
./theme.nix
|
|
];
|
|
|
|
home = {
|
|
username = username;
|
|
homeDirectory =
|
|
if pkgs.stdenv.isDarwin then "/Users/${username}" else "/home/${username}";
|
|
stateVersion = "24.11";
|
|
};
|
|
|
|
# ── User-level packages ────────────────────────────
|
|
home.packages = with pkgs; [
|
|
# Modern CLI replacements
|
|
dust # du
|
|
duf # df
|
|
procs # ps
|
|
sd # sed
|
|
xh # curl/httpie
|
|
jq # JSON
|
|
yq # YAML
|
|
wget
|
|
|
|
# System info
|
|
fastfetch
|
|
tealdeer # tldr
|
|
|
|
# File management
|
|
trash-cli
|
|
|
|
# Nix tools
|
|
nix-output-monitor # nom
|
|
nvd # nix version diff
|
|
nh # nix helper
|
|
|
|
# AI coding agent
|
|
opencode
|
|
comment-checker
|
|
|
|
# Misc
|
|
micro
|
|
];
|
|
|
|
# XDG directories
|
|
xdg.enable = true;
|
|
}
|