mirror of
https://github.com/fscotto/infra.git
synced 2026-11-26 21:59:50 +00:00
Compare commits
3 Commits
2cadbf25eb
...
94eb555ff3
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
94eb555ff3 | ||
|
|
25a3b97b14 | ||
|
|
e8db4e5f38 |
@@ -144,3 +144,12 @@ vscode_extensions:
|
|||||||
- saoudrizwan.claude-dev
|
- saoudrizwan.claude-dev
|
||||||
- vscodevim.vim
|
- vscodevim.vim
|
||||||
vscode_settings: null
|
vscode_settings: null
|
||||||
|
# User-level keybindings apply to every window, including Dev Containers, SSH and WSL remotes.
|
||||||
|
# Keys avoid Ctrl+<letter>, which the Vim extension uses for its motions; Alt is not bound by Vim.
|
||||||
|
vscode_keybindings:
|
||||||
|
- key: alt+j
|
||||||
|
command: workbench.action.terminal.toggleTerminal
|
||||||
|
when: "!terminalFocus"
|
||||||
|
- key: alt+j
|
||||||
|
command: workbench.action.togglePanel
|
||||||
|
when: terminalFocus
|
||||||
|
|||||||
@@ -47,7 +47,7 @@
|
|||||||
owner: "{{ username }}"
|
owner: "{{ username }}"
|
||||||
group: "{{ user_group }}"
|
group: "{{ user_group }}"
|
||||||
mode: "0755"
|
mode: "0755"
|
||||||
when: vscode_settings is not none
|
when: vscode_settings is not none or vscode_keybindings | length > 0
|
||||||
|
|
||||||
- name: Deploy explicitly managed VS Code settings
|
- name: Deploy explicitly managed VS Code settings
|
||||||
ansible.builtin.copy:
|
ansible.builtin.copy:
|
||||||
@@ -58,3 +58,13 @@
|
|||||||
mode: "0644"
|
mode: "0644"
|
||||||
backup: true
|
backup: true
|
||||||
when: vscode_settings is not none
|
when: vscode_settings is not none
|
||||||
|
|
||||||
|
- name: Deploy managed VS Code keybindings
|
||||||
|
ansible.builtin.copy:
|
||||||
|
dest: "{{ user_home }}/.config/Code/User/keybindings.json"
|
||||||
|
content: "{{ vscode_keybindings | to_nice_json }}\n"
|
||||||
|
owner: "{{ username }}"
|
||||||
|
group: "{{ user_group }}"
|
||||||
|
mode: "0644"
|
||||||
|
backup: true
|
||||||
|
when: vscode_keybindings | length > 0
|
||||||
|
|||||||
@@ -40,6 +40,14 @@
|
|||||||
group: "{{ user_group }}"
|
group: "{{ user_group }}"
|
||||||
mode: "0700"
|
mode: "0700"
|
||||||
|
|
||||||
|
- name: Ensure the persistent Bash history directory mounted into the container exists
|
||||||
|
ansible.builtin.file:
|
||||||
|
path: "{{ user_home }}/.local/state/devcontainer-bash-history/cdp"
|
||||||
|
state: directory
|
||||||
|
owner: "{{ username }}"
|
||||||
|
group: "{{ user_group }}"
|
||||||
|
mode: "0700"
|
||||||
|
|
||||||
- name: Ensure the private ecaas Git state directory exists
|
- name: Ensure the private ecaas Git state directory exists
|
||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
path: "{{ ecaas_agent_state }}"
|
path: "{{ ecaas_agent_state }}"
|
||||||
|
|||||||
@@ -32,6 +32,14 @@
|
|||||||
group: "{{ user_group }}"
|
group: "{{ user_group }}"
|
||||||
mode: "0755"
|
mode: "0755"
|
||||||
|
|
||||||
|
- name: Ensure the persistent Bash history directory mounted into the container exists
|
||||||
|
ansible.builtin.file:
|
||||||
|
path: "{{ user_home }}/.local/state/devcontainer-bash-history/ecaas"
|
||||||
|
state: directory
|
||||||
|
owner: "{{ username }}"
|
||||||
|
group: "{{ user_group }}"
|
||||||
|
mode: "0700"
|
||||||
|
|
||||||
- name: Ensure the private ecaas Git state directory exists
|
- name: Ensure the private ecaas Git state directory exists
|
||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
path: "{{ ecaas_agent_state }}"
|
path: "{{ ecaas_agent_state }}"
|
||||||
|
|||||||
@@ -10,7 +10,8 @@
|
|||||||
"remoteUser": "vscode",
|
"remoteUser": "vscode",
|
||||||
"updateRemoteUserUID": true,
|
"updateRemoteUserUID": true,
|
||||||
"containerEnv": {
|
"containerEnv": {
|
||||||
"CLAUDE_CONFIG_DIR": "/home/vscode/.claude"
|
"CLAUDE_CONFIG_DIR": "/home/vscode/.claude",
|
||||||
|
"HISTFILE": "/home/vscode/.bash_history.d/history"
|
||||||
},
|
},
|
||||||
"remoteEnv": {
|
"remoteEnv": {
|
||||||
"ANTHROPIC_AUTH_TOKEN": "${localEnv:ANTHROPIC_AUTH_TOKEN}"
|
"ANTHROPIC_AUTH_TOKEN": "${localEnv:ANTHROPIC_AUTH_TOKEN}"
|
||||||
@@ -26,6 +27,7 @@
|
|||||||
{{ ('type=bind,source=' ~ user_home ~ '/.local/share/certs/' ~ ca.certificate ~ ',target=/run/ecaas-git-ca/' ~ ca.certificate ~ ',readonly') | to_json }},
|
{{ ('type=bind,source=' ~ user_home ~ '/.local/share/certs/' ~ ca.certificate ~ ',target=/run/ecaas-git-ca/' ~ ca.certificate ~ ',readonly') | to_json }},
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{{ ('type=bind,source=' ~ user_home ~ '/.config/ai,target=/home/vscode/.config/ai,readonly') | to_json }},
|
{{ ('type=bind,source=' ~ user_home ~ '/.config/ai,target=/home/vscode/.config/ai,readonly') | to_json }},
|
||||||
|
{{ ('type=bind,source=' ~ user_home ~ '/.local/state/devcontainer-bash-history/cdp,target=/home/vscode/.bash_history.d') | to_json }},
|
||||||
{{ ('type=bind,source=' ~ user_home ~ '/.claude,target=/home/vscode/.claude') | to_json }},
|
{{ ('type=bind,source=' ~ user_home ~ '/.claude,target=/home/vscode/.claude') | to_json }},
|
||||||
{{ ('type=bind,source=' ~ user_home ~ '/.cline,target=/home/vscode/.cline') | to_json }},
|
{{ ('type=bind,source=' ~ user_home ~ '/.cline,target=/home/vscode/.cline') | to_json }},
|
||||||
{{ ('type=bind,source=' ~ user_home ~ '/.m2,target=/home/vscode/.m2') | to_json }},
|
{{ ('type=bind,source=' ~ user_home ~ '/.m2,target=/home/vscode/.m2') | to_json }},
|
||||||
|
|||||||
@@ -9,7 +9,8 @@
|
|||||||
"remoteUser": "vscode",
|
"remoteUser": "vscode",
|
||||||
"updateRemoteUserUID": true,
|
"updateRemoteUserUID": true,
|
||||||
"containerEnv": {
|
"containerEnv": {
|
||||||
"CLAUDE_CONFIG_DIR": "/home/vscode/.claude"
|
"CLAUDE_CONFIG_DIR": "/home/vscode/.claude",
|
||||||
|
"HISTFILE": "/home/vscode/.bash_history.d/history"
|
||||||
},
|
},
|
||||||
"remoteEnv": {
|
"remoteEnv": {
|
||||||
"ANTHROPIC_AUTH_TOKEN": "${localEnv:ANTHROPIC_AUTH_TOKEN}"
|
"ANTHROPIC_AUTH_TOKEN": "${localEnv:ANTHROPIC_AUTH_TOKEN}"
|
||||||
@@ -25,6 +26,7 @@
|
|||||||
{{ ('type=bind,source=' ~ user_home ~ '/.local/share/certs/' ~ ca.certificate ~ ',target=/run/ecaas-git-ca/' ~ ca.certificate ~ ',readonly') | to_json }},
|
{{ ('type=bind,source=' ~ user_home ~ '/.local/share/certs/' ~ ca.certificate ~ ',target=/run/ecaas-git-ca/' ~ ca.certificate ~ ',readonly') | to_json }},
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{{ ('type=bind,source=' ~ user_home ~ '/.config/ai,target=/home/vscode/.config/ai,readonly') | to_json }},
|
{{ ('type=bind,source=' ~ user_home ~ '/.config/ai,target=/home/vscode/.config/ai,readonly') | to_json }},
|
||||||
|
{{ ('type=bind,source=' ~ user_home ~ '/.local/state/devcontainer-bash-history/ecaas,target=/home/vscode/.bash_history.d') | to_json }},
|
||||||
{{ ('type=bind,source=' ~ user_home ~ '/.claude,target=/home/vscode/.claude') | to_json }},
|
{{ ('type=bind,source=' ~ user_home ~ '/.claude,target=/home/vscode/.claude') | to_json }},
|
||||||
{{ ('type=bind,source=' ~ user_home ~ '/.cline,target=/home/vscode/.cline') | to_json }},
|
{{ ('type=bind,source=' ~ user_home ~ '/.cline,target=/home/vscode/.cline') | to_json }},
|
||||||
{{ ('type=bind,source=' ~ user_home ~ '/.m2,target=/home/vscode/.m2') | to_json }},
|
{{ ('type=bind,source=' ~ user_home ~ '/.m2,target=/home/vscode/.m2') | to_json }},
|
||||||
|
|||||||
Reference in New Issue
Block a user