Skip to content

Refactor shared config into Home Manager modules#89

Merged
samestep merged 1 commit into
mainfrom
modules
Jun 10, 2026
Merged

Refactor shared config into Home Manager modules#89
samestep merged 1 commit into
mainfrom
modules

Conversation

@samestep

@samestep samestep commented Mar 26, 2026

Copy link
Copy Markdown
Owner

No description provided.

@samestep samestep marked this pull request as draft May 26, 2026 15:27
Replace `util.nix` (a plain function each host hand-merged via
`util.programs // {...}`) with real Home Manager modules under `modules/`,
where behavior is determined purely by which modules a config imports.

VS Code and its ~25 extensions previously landed on every host via
`util.programs`. Now `modules/vscode.nix` (plus an OS-specific
`vscode-{linux,darwin}.nix` for the settings/keybindings paths) is imported
only by the GUI hosts (`sam`, `samueles`); the docker agents and the Tart
`admin` VM no longer pull it in. The safe-vs-yolo Claude/Codex choice becomes
`modules/{safe,yolo}.nix`, each host importing exactly one. The `symlink`
helper is exposed to all modules and host configs via `_module.args`.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@samestep samestep changed the title Turn util.nix into a Home Manager module Refactor shared config into Home Manager modules Jun 10, 2026
@samestep samestep marked this pull request as ready for review June 10, 2026 21:08
@samestep samestep merged commit 7bc2dea into main Jun 10, 2026
6 checks passed
@samestep samestep deleted the modules branch June 10, 2026 21:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant