18 lines
734 B
Nix
18 lines
734 B
Nix
{ config, lib, pkgs, ... }:
|
|
let
|
|
link = config.dotfiles.link;
|
|
in
|
|
{
|
|
# Claude Code and pi install themselves (`dot apps`) so their auto-updaters keep working.
|
|
# Config is linked from the checkout so in-app edits show up in `git diff`.
|
|
home.packages = lib.optionals (config.dotfiles.gui && !config.dotfiles.work) [ pkgs.codex ];
|
|
|
|
home.file = {
|
|
".claude/settings.json".source = link "config/claude/settings.json";
|
|
".claude/CLAUDE.md".source = link "config/claude/CLAUDE.md";
|
|
".pi/agent/settings.json".source = link "config/pi/settings.json";
|
|
};
|
|
# MCP servers carry tokens, so they are rendered from config/*/mcp*.json templates
|
|
# plus ~/.config/dotfiles/secrets.env by `dot secrets render` (never committed).
|
|
}
|