Skip to content

chore: 清理冗余声明与选项描述 - #61

Merged
27Aaron merged 1 commit into
mainfrom
chore/cleanup-redundant-decls
Aug 30, 2026
Merged

chore: 清理冗余声明与选项描述#61
27Aaron merged 1 commit into
mainfrom
chore/cleanup-redundant-decls

Conversation

@27Aaron

@27Aaron 27Aaron commented Aug 30, 2026

Copy link
Copy Markdown
Owner

清理行为等价的冗余声明与描述:

  • modules/nixos/system/nix.nix:删除与 NixOS 默认值相同的 nix.package = pkgs.nix,移除随之闲置的 pkgs 参数
  • modules/common/nix.nix:删除 builders-use-substitutes——仓库未配置任何 buildMachines,该设置不生效且易造成已有远程构建的误解
  • modules/common/tools.nix:删除与 Home Manager 默认值相同的 nix-direnv.package
  • modules/nixos/apps/{coder,postgresql}.nix:修正 mkEnableOption 双 "Enable" 描述;coder 的 after / requires 两处相同条件的 mkIf 合并为一处
  • modules/nixos/desktop/xdg-user-dirs.nixpublicShare / templates 由指向 /var/empty 改为 null,直接不生成对应 XDG 变量
  • modules/nixos/desktop/applications.nix:补充"基础应用集"的设计意图注释,说明带自身配置的应用走 desktop'.apps.<app> 独立模块

@27Aaron
27Aaron merged commit a612498 into main Aug 30, 2026
@github-actions github-actions Bot added the chore Maintenance and tooling label Aug 30, 2026
@27Aaron
27Aaron deleted the chore/cleanup-redundant-decls branch August 30, 2026 11:00
@github-actions github-actions Bot added nixos NixOS hosts and modules darwin nix-darwin hosts and modules labels Aug 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

chore Maintenance and tooling darwin nix-darwin hosts and modules nixos NixOS hosts and modules

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant