mirror of
https://github.com/harivansh-afk/nix.git
synced 2026-04-18 06:04:08 +00:00
chore: cursor agent, aerospace
This commit is contained in:
parent
d25c1e0ce3
commit
c1ac8e87b9
4 changed files with 35 additions and 3 deletions
|
|
@ -140,9 +140,10 @@
|
|||
alt-backtick = "workspace-back-and-forth";
|
||||
|
||||
# Monitor focus/move
|
||||
alt-period = "focus-monitor next";
|
||||
alt-shift-period = "move-node-to-monitor next";
|
||||
alt-shift-comma = "move-workspace-to-monitor next";
|
||||
alt-period = "focus-monitor --wrap-around next";
|
||||
alt-shift-period = "move-node-to-monitor --wrap-around --focus-follows-window next";
|
||||
alt-shift-comma = "move-workspace-to-monitor --wrap-around next";
|
||||
ctrl-alt-cmd-space = "move-node-to-monitor --wrap-around --focus-follows-window next";
|
||||
|
||||
# Modes
|
||||
alt-shift-r = "mode resize";
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@
|
|||
./bat.nix
|
||||
./eza.nix
|
||||
./claude.nix
|
||||
./cursor.nix
|
||||
./devin.nix
|
||||
./xdg.nix
|
||||
./security.nix
|
||||
|
|
|
|||
28
home/cursor.nix
Normal file
28
home/cursor.nix
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
{ pkgs, ... }:
|
||||
let
|
||||
jsonFormat = pkgs.formats.json { };
|
||||
|
||||
# Cursor reads ~/.cursor/mcp.json on startup for every CLI session. Declaring
|
||||
# it here keeps the MCP surface in-repo and reviewable.
|
||||
cursorMcp = jsonFormat.generate "cursor-mcp.json" {
|
||||
mcpServers = {
|
||||
rube = {
|
||||
url = "https://rube.composio.dev/mcp?agent=cursor";
|
||||
headers = { };
|
||||
};
|
||||
context7 = {
|
||||
command = "npx";
|
||||
args = [
|
||||
"-y"
|
||||
"@upstash/context7-mcp@latest"
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
in
|
||||
{
|
||||
# Cursor CLI mutates ~/.cursor/cli-config.json directly (auth, privacy cache,
|
||||
# per-session slash-command state), so we intentionally do NOT manage that
|
||||
# file here. Only MCP config is declarative.
|
||||
home.file.".cursor/mcp.json".source = cursorMcp;
|
||||
}
|
||||
|
|
@ -30,6 +30,8 @@
|
|||
shellAliases = {
|
||||
co = "codex --dangerously-bypass-approvals-and-sandbox";
|
||||
ca = "cursor-agent";
|
||||
agent-claude = "cursor-agent --model=claude-opus-4-7-thinking-max --force";
|
||||
agent-codex = "cursor-agent --model=gpt-5.4-xhigh-fast --force";
|
||||
cc = "claude";
|
||||
ch = "claude-handoff";
|
||||
cl = "clear";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue