mirror of
https://github.com/fscotto/infra.git
synced 2026-11-26 13:49:52 +00:00
Compare commits
3 Commits
e4e99d2a2f
...
ada83e97d3
| Author | SHA1 | Date | |
|---|---|---|---|
| ada83e97d3 | |||
| 667f55b87b | |||
| 69196460c9 |
@@ -121,3 +121,7 @@ thunderbird_icloud_caldav_url: https://caldav.icloud.com/
|
|||||||
thunderbird_icloud_carddav_url: https://contacts.icloud.com/
|
thunderbird_icloud_carddav_url: https://contacts.icloud.com/
|
||||||
thunderbird_icloud_calendar_id: 4f2c1d6e-9b3a-4f7c-8e21-6d5a0c9b7e13
|
thunderbird_icloud_calendar_id: 4f2c1d6e-9b3a-4f7c-8e21-6d5a0c9b7e13
|
||||||
thunderbird_icloud_addressbook_uid: 9e0b7c4a-2d51-4a8f-b6c3-1f7d5e2a8b46
|
thunderbird_icloud_addressbook_uid: 9e0b7c4a-2d51-4a8f-b6c3-1f7d5e2a8b46
|
||||||
|
|
||||||
|
# Native VS Code; opt in to managing settings only after defining them.
|
||||||
|
vscode_extensions: []
|
||||||
|
vscode_settings: null
|
||||||
|
|||||||
@@ -284,3 +284,7 @@
|
|||||||
tags: [dotfiles, dotfiles:desktop, gnome, thunderbird]
|
tags: [dotfiles, dotfiles:desktop, gnome, thunderbird]
|
||||||
ansible.builtin.import_tasks: thunderbird.yml
|
ansible.builtin.import_tasks: thunderbird.yml
|
||||||
when: thunderbird_icloud_enabled | default(false) | bool
|
when: thunderbird_icloud_enabled | default(false) | bool
|
||||||
|
|
||||||
|
- name: Configure native VS Code
|
||||||
|
tags: [vscode]
|
||||||
|
ansible.builtin.import_tasks: vscode.yml
|
||||||
|
|||||||
60
ansible/roles/profile_desktop_gnome/tasks/vscode.yml
Normal file
60
ansible/roles/profile_desktop_gnome/tasks/vscode.yml
Normal file
@@ -0,0 +1,60 @@
|
|||||||
|
---
|
||||||
|
- name: Configure Microsoft VS Code repository
|
||||||
|
ansible.builtin.yum_repository:
|
||||||
|
name: code
|
||||||
|
description: Visual Studio Code
|
||||||
|
baseurl: https://packages.microsoft.com/yumrepos/vscode
|
||||||
|
enabled: true
|
||||||
|
gpgcheck: true
|
||||||
|
gpgkey: https://packages.microsoft.com/keys/microsoft.asc
|
||||||
|
|
||||||
|
- name: Install native VS Code
|
||||||
|
ansible.builtin.dnf:
|
||||||
|
name: code
|
||||||
|
state: present
|
||||||
|
|
||||||
|
- name: List installed VS Code extensions
|
||||||
|
ansible.builtin.command:
|
||||||
|
argv: [code, --list-extensions]
|
||||||
|
become: true
|
||||||
|
become_user: "{{ username }}"
|
||||||
|
environment:
|
||||||
|
HOME: "{{ user_home }}"
|
||||||
|
register: vscode_installed_extensions
|
||||||
|
changed_when: false
|
||||||
|
check_mode: false
|
||||||
|
when:
|
||||||
|
- vscode_extensions | length > 0
|
||||||
|
- not ansible_check_mode
|
||||||
|
|
||||||
|
- name: Install missing VS Code extensions
|
||||||
|
ansible.builtin.command:
|
||||||
|
argv: [code, --install-extension, "{{ item }}"]
|
||||||
|
become: true
|
||||||
|
become_user: "{{ username }}"
|
||||||
|
environment:
|
||||||
|
HOME: "{{ user_home }}"
|
||||||
|
loop: "{{ vscode_extensions }}"
|
||||||
|
when:
|
||||||
|
- not ansible_check_mode
|
||||||
|
- item | lower not in (vscode_installed_extensions.stdout_lines | default([]) | map('lower') | list)
|
||||||
|
changed_when: true
|
||||||
|
|
||||||
|
- name: Ensure VS Code user configuration directory exists
|
||||||
|
ansible.builtin.file:
|
||||||
|
path: "{{ user_home }}/.config/Code/User"
|
||||||
|
state: directory
|
||||||
|
owner: "{{ username }}"
|
||||||
|
group: "{{ user_group }}"
|
||||||
|
mode: "0755"
|
||||||
|
when: vscode_settings is not none
|
||||||
|
|
||||||
|
- name: Deploy explicitly managed VS Code settings
|
||||||
|
ansible.builtin.copy:
|
||||||
|
dest: "{{ user_home }}/.config/Code/User/settings.json"
|
||||||
|
content: "{{ vscode_settings | to_nice_json }}\n"
|
||||||
|
owner: "{{ username }}"
|
||||||
|
group: "{{ user_group }}"
|
||||||
|
mode: "0644"
|
||||||
|
backup: true
|
||||||
|
when: vscode_settings is not none
|
||||||
@@ -1,4 +1,3 @@
|
|||||||
model = "gpt-5.6-terra"
|
|
||||||
model_reasoning_effort = "medium"
|
model_reasoning_effort = "medium"
|
||||||
|
|
||||||
model_instructions_file = "{{ effective_user_home }}/.config/ai/bootstrap.md"
|
model_instructions_file = "{{ effective_user_home }}/.config/ai/bootstrap.md"
|
||||||
|
|||||||
7
dotfiles/fedora/.bashrc.d/09-go-env.sh
Normal file
7
dotfiles/fedora/.bashrc.d/09-go-env.sh
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
# Keep Go's workspace out of the home directory root.
|
||||||
|
export GOPATH="$HOME/.local/share/Go"
|
||||||
|
case ":$PATH:" in
|
||||||
|
*":$GOPATH/bin:"*) ;;
|
||||||
|
*) PATH="$GOPATH/bin:$PATH" ;;
|
||||||
|
esac
|
||||||
|
export PATH
|
||||||
Reference in New Issue
Block a user