26 Commits

Author SHA1 Message Date
imbytecat 007a104ef3 feat(fish): 添加 VS Code code 命令到 PATH(仅 macOS) 2026-04-15 17:01:56 +08:00
imbytecat 41913d9a24 style: 将项目中所有英文注释统一改为中文 2026-04-15 16:40:20 +08:00
imbytecat ba7e0bb7af feat(fish): 支持 Windows Terminal 新标签页保持当前目录 2026-04-15 03:43:26 +08:00
imbytecat b84b747b76 fix(shell): 修复 op-env 缓存逻辑——旧变量清理、rm 绕过 gomi、错误信息细化 2026-04-15 03:26:14 +08:00
imbytecat aec2625eaa feat(shell): 1Password 环境变量改为本地缓存,支持离网使用
- op inject 结果缓存到 ~/.cache/op-env/env.fish,shell 启动不再联网
- 新增 op-env-refresh(手动刷新)和 op-env-clear(清除缓存)
- mktemp + mv 原子写入,刷新失败保留旧缓存
- 更新 README 文档匹配新行为
2026-04-15 03:10:06 +08:00
imbytecat f6e2f92da3 refactor: remove redundant aliases, comments, and fix lazygit pager config 2026-04-14 13:53:04 +08:00
imbytecat fbb83ff013 refactor(op): switch to service account auth and simplify env injection 2026-04-14 13:11:16 +08:00
imbytecat 2cd888e1cf refactor: use idiomatic home-manager options for git user and mise activation 2026-04-13 22:45:36 +08:00
imbytecat a1ba07faf5 refactor(eza): delegate base aliases to HM integration, drop redundant flags 2026-04-13 21:03:24 +08:00
imbytecat d2f7210d1a refactor(fish): streamline eza aliases — add l, drop la/lt 2026-04-13 20:42:03 +08:00
imbytecat 77c2190f00 refactor(fish): use shellAliases for Atuin history compatibility, remove xh 2026-04-13 20:34:27 +08:00
imbytecat 3c6910cfb1 fix(fish): use --in-file for op inject to fix stdin issue in command substitution 2026-04-13 20:13:38 +08:00
imbytecat 067608f4f8 refactor(fish): use op-env namespace and xdg.configHome for env template path 2026-04-13 18:53:54 +08:00
imbytecat 1e78149a4f fix(1password): move env template out of ~/.config/op to avoid permission conflict
HM creating ~/.config/op/ with 755 prevents op CLI from running (requires 700).
Move template to ~/.config/1password/, use nix-darwin programs._1password module.
2026-04-13 18:48:12 +08:00
imbytecat 09463d0dbb refactor(fish): extract op-env into reloadable function and skip comment lines 2026-04-13 15:46:19 +08:00
imbytecat 82ab946ba1 fix: op path 2026-04-13 15:38:10 +08:00
imbytecat 50808a9ecf fix: use type -q and stdin for op inject to support WSL interop alias 2026-04-13 15:29:13 +08:00
imbytecat 024ea2c676 refactor(wsl): use Windows op.exe via interop instead of native 1password-cli 2026-04-13 15:21:34 +08:00
imbytecat b9e8566cee refactor: replace sops-nix with 1Password CLI for secrets management 2026-04-13 14:57:11 +08:00
imbytecat aa1b2ff23c refactor: 简化仓库路径,移除硬编码的 rebuild/update 命令和安装脚本 2026-04-11 17:52:03 +08:00
imbytecat 7b0e23e0cf chore: trash-cli 换 gomi,移除 micro 和无用的 pkgs/default.nix,精简 comment-checker 平台支持 2026-04-11 17:08:43 +08:00
imbytecat 3bd914a002 feat: 迁移 macOS 到 Lix,统一全平台 nix 配置
替换 Determinate Nix 为 Lix (pkgs.lix),移除 nix.enable 条件判断,nix.settings 现在统一应用于所有设备。更新 AGENTS.md 和 README.md 文档。
2026-04-11 00:56:38 +08:00
imbytecat ac7f9f8b8a fix: rebuild abbreviation 自动从 hostname 推导 flake attr
hostname awesome-mac-mini → flake attr mac-mini
hostname awesome-macbook-air → flake attr macbook-air
WSL 硬编码 #wsl(唯一 NixOS host)
2026-04-11 00:14:17 +08:00
imbytecat e9146a4e4d fix: 统一文档与代码中的仓库路径和安装器推荐
- AGENTS.md: 移除'README 还指向 Determinate'的过时描述
- fish.nix: rebuild/update 路径从 ~/.config 改为 ~/Developer
- fish.nix: darwin rebuild 加 sudo
- AGENTS.md: repo location 描述与实际一致
2026-04-10 23:59:09 +08:00
imbytecat 96f88b3047 chore: 清除 zsh 残留,声明式 git 身份与 SSH config
- 移除所有 zsh 引用,补全 fish 迁移
- git.nix: 声明 userName/userEmail,删除 credential.helper store 和内网 sslVerify
- 新增 programs.ssh 声明式配置(id_ed25519, addKeysToAgent)
- 简化 install.sh 为 darwin/nixos 双平台
2026-04-10 21:58:55 +08:00
imbytecat 68184abd8f refactor: 重构为三设备架构,zsh 迁移至 fish
- 新增 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
2026-04-10 21:48:19 +08:00