68184abd8f
- 新增 darwinConfigurations: mac-mini, macbook-air (aarch64-darwin) - WSL 统一用户名为 imbytecat,主机名改为 awesome-* 系列 - zsh 全面迁移至 fish (abbrs, 内置补全/高亮, zoxide --cmd cd) - 激活 nix-darwin 模块: Homebrew, 系统偏好, Touch ID sudo - 移除 bare/standalone 配置及 catppuccin nixosModule from mkDarwin
47 lines
1.3 KiB
Nix
47 lines
1.3 KiB
Nix
{ pkgs, username, ... }:
|
|
|
|
{
|
|
# ── Shell ──────────────────────────────────────────
|
|
programs.fish.enable = true;
|
|
|
|
# ── User ───────────────────────────────────────────
|
|
users.users.${username} = {
|
|
home = "/Users/${username}";
|
|
shell = pkgs.fish;
|
|
};
|
|
|
|
# ── Fonts ──────────────────────────────────────────
|
|
fonts.packages = with pkgs; [
|
|
maple-mono.NF-CN-unhinted
|
|
nerd-fonts.symbols-only
|
|
];
|
|
|
|
# ── macOS system preferences ───────────────────────
|
|
system.defaults = {
|
|
dock = {
|
|
autohide = true;
|
|
show-recents = false;
|
|
mru-spaces = false;
|
|
};
|
|
finder = {
|
|
AppleShowAllExtensions = true;
|
|
FXPreferredViewStyle = "clmv";
|
|
};
|
|
NSGlobalDomain = {
|
|
AppleShowAllExtensions = true;
|
|
InitialKeyRepeat = 15;
|
|
KeyRepeat = 2;
|
|
};
|
|
};
|
|
|
|
# ── Homebrew (GUI apps not in nixpkgs) ─────────────
|
|
homebrew = {
|
|
enable = true;
|
|
casks = [
|
|
"raycast"
|
|
"arc"
|
|
];
|
|
onActivation.cleanup = "zap";
|
|
};
|
|
}
|