Skip to content

Commit 1b49085

Browse files
committed
Add gemini configuration
1 parent 60fbe4b commit 1b49085

File tree

2 files changed

+35
-0
lines changed

2 files changed

+35
-0
lines changed

roles/other/files/gemini.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"security": {
3+
"auth": {
4+
"selectedType": "vertex-ai"
5+
},
6+
"disableYoloMode": true
7+
},
8+
"general": {
9+
"disableAutoUpdate": true
10+
},
11+
"ui": {
12+
"footer": {
13+
"hideContextPercentage": false
14+
},
15+
"showMemoryUsage": true,
16+
"showModelInfoInChat": true
17+
}
18+
}

roles/other/tasks/main.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,23 @@
7171
src: "{{ playbook_dir }}/roles/other/files/ppqsubmit.py"
7272
state: link
7373

74+
- name: Creating gemini configuration directory
75+
when: mtype == 'work'
76+
ansible.builtin.file:
77+
group: "{{ whoami_group }}"
78+
mode: "0755"
79+
owner: "{{ whoami }}"
80+
path: "{{ ansible_user_dir }}/.gemini"
81+
state: directory
82+
83+
# this is ok, because boostrap.bash calls dotfiles.yml as the playbook
84+
- name: Copying gemini configuration
85+
when: mtype == 'work'
86+
ansible.builtin.file:
87+
dest: "{{ ansible_user_dir }}/.gemini/settings.json"
88+
src: "{{ playbook_dir }}/roles/other/files/gemini.json"
89+
state: link
90+
7491
- name: Creating tailscale tray startup
7592
when: mtype == 'personal' and ansible_system == "Linux"
7693
ansible.builtin.command:

0 commit comments

Comments
 (0)