This commit is contained in:
Miguel Palhas
2026-02-04 14:02:11 +00:00
parent c763eed5b6
commit f9dfa0404e
5 changed files with 47 additions and 6 deletions
+25 -2
View File
@@ -9,7 +9,30 @@
@anthropic-ai/claude-code @anthropic-ai/claude-code
''; '';
home.file.".claude/commands".source = ./commands; # Create writable commands directory and symlink individual command files
home.file.".claude/settings.json".source = ./settings.json; home.activation.claudeCommandsDir = lib.hm.dag.entryAfter ["writeBoundary"] ''
COMMANDS_DIR="$HOME/.claude/commands"
SETTINGS_FILE="$HOME/.claude/settings.json"
# Remove old symlink if it exists
if [ -L "$COMMANDS_DIR" ]; then
$DRY_RUN_CMD rm -f "$COMMANDS_DIR"
fi
# Create the directory if it doesn't exist
$DRY_RUN_CMD mkdir -p "$COMMANDS_DIR"
# Symlink individual command files from nix store
$DRY_RUN_CMD ln -sf ${./commands/merge.md} "$COMMANDS_DIR/merge.md"
$DRY_RUN_CMD ln -sf ${./commands/update.md} "$COMMANDS_DIR/update.md"
$DRY_RUN_CMD ln -sf ${./commands/work.md} "$COMMANDS_DIR/work.md"
# Copy settings.json to make it writable (only if it doesn't exist or is a symlink)
if [ -L "$SETTINGS_FILE" ] || [ ! -f "$SETTINGS_FILE" ]; then
$DRY_RUN_CMD rm -f "$SETTINGS_FILE"
$DRY_RUN_CMD cp ${./settings.json} "$SETTINGS_FILE"
$DRY_RUN_CMD chmod 644 "$SETTINGS_FILE"
fi
'';
home.file.".claude/CLAUDE.md".source = ./CLAUDE.md; home.file.".claude/CLAUDE.md".source = ./CLAUDE.md;
} }
+15 -1
View File
@@ -38,7 +38,21 @@
"matcher": "*", "matcher": "*",
"hooks": [{ "type": "command", "command": "printf '\\a'" }] "hooks": [{ "type": "command", "command": "printf '\\a'" }]
} }
],
"SessionStart": [
{
"hooks": [
{
"type": "command",
"command": "node \"/home/naps62/.claude/hooks/gsd-check-update.js\""
}
]
}
] ]
}, },
"$schema": "https://json.schemastore.org/claude-code-settings.json" "$schema": "https://json.schemastore.org/claude-code-settings.json",
"statusLine": {
"type": "command",
"command": "node \"/home/naps62/.claude/hooks/gsd-statusline.js\""
}
} }
+6
View File
@@ -10,6 +10,12 @@
enable = true; enable = true;
enableZshIntegration = true; enableZshIntegration = true;
nix-direnv.enable = true; nix-direnv.enable = true;
# Add devenv support
stdlib = ''
# Source devenv direnvrc for use_devenv function
eval "$(devenv direnvrc)"
'';
}; };
}; };
-2
View File
@@ -5,8 +5,6 @@
"adbusers" "adbusers"
]; ];
programs.adb.enable = true;
# services.udev.packages = with pkgs; [ # services.udev.packages = with pkgs; [
# android-udev-rules # android-udev-rules
# ]; # ];
+1 -1
View File
@@ -4,7 +4,7 @@
networkmanager = { networkmanager = {
enable = true; enable = true;
}; };
wireless.iwd.enable = true; # wireless.iwd.enable = true;
}; };
services.avahi = { services.avahi = {