12 lines
564 B
Nix
12 lines
564 B
Nix
|
|
{ lib, ... }:
|
||
|
|
{
|
||
|
|
# Copy Claude Code configuration files to ~/.claude/
|
||
|
|
# Using activation script instead of home.file to copy (not symlink) files
|
||
|
|
home.activation.copyClaudeCommands = lib.hm.dag.entryAfter ["writeBoundary"] ''
|
||
|
|
$DRY_RUN_CMD mkdir -p $VERBOSE_ARG $HOME/.claude/commands
|
||
|
|
$DRY_RUN_CMD cp $VERBOSE_ARG ${./config/commands/commit.md} $HOME/.claude/commands/commit.md
|
||
|
|
$DRY_RUN_CMD cp $VERBOSE_ARG ${./config/commands/go-plan.md} $HOME/.claude/commands/go-plan.md
|
||
|
|
$DRY_RUN_CMD chmod $VERBOSE_ARG 644 $HOME/.claude/commands/*.md
|
||
|
|
'';
|
||
|
|
}
|