]>
Commit | Line | Data |
---|---|---|
397c4fed IB |
1 | --- |
2 | - name: Import other tools | |
3 | include_role: | |
e1c588d3 | 4 | name: "{{ tool_import_item }}" |
397c4fed IB |
5 | loop: |
6 | - git | |
7 | - gnupg | |
e1c588d3 IB |
8 | loop_control: |
9 | loop_var: tool_import_item | |
587b6dd6 IB |
10 | - name: Config dirs |
11 | file: | |
12 | state: directory | |
13 | path: "$XDG_CONFIG_HOME/{{ item }}" | |
14 | loop: | |
15 | - htop | |
16 | - mplayer | |
17 | - psql | |
18 | - vim | |
19 | - tmux | |
20 | - youtube-viewer | |
21 | - remind | |
22 | - systemd/user | |
4be9c7bb | 23 | - nixpkgs |
23a64c85 | 24 | - name: config files |
397c4fed | 25 | copy: |
23a64c85 IB |
26 | src: "{{ item }}" |
27 | dest: "$XDG_CONFIG_HOME/{{ item }}" | |
28 | loop: | |
29 | - htop/htoprc | |
30 | - mplayer/config | |
4be9c7bb | 31 | - nixpkgs/config.nix |
379fbe46 IB |
32 | - name: template config files |
33 | template: | |
34 | src: "{{ item }}.j2" | |
35 | dest: "$XDG_CONFIG_HOME/{{ item }}" | |
36 | loop: | |
37 | - wgetrc | |
cf86d448 IB |
38 | - name: postgresql |
39 | block: | |
40 | - name: psql config file | |
41 | copy: | |
42 | src: psqlrc | |
43 | dest: $XDG_CONFIG_HOME/psql/psqlrc | |
44 | - name: psql history directory | |
45 | file: | |
46 | path: $XDG_STATE_HOME/psql | |
47 | state: directory | |
397c4fed | 48 | - name: vim config file |
397c4fed IB |
49 | copy: |
50 | src: vimrc | |
51 | dest: $XDG_CONFIG_HOME/vim/vimrc | |
d03cede6 IB |
52 | notify: |
53 | - run PlugInstall | |
eac82f28 | 54 | - meta: flush_handlers |
397c4fed IB |
55 | - name: tmux config file |
56 | template: | |
57 | src: tmux.conf.j2 | |
58 | dest: $XDG_CONFIG_HOME/tmux/tmux.conf | |
59 | - name: youtube viewer config file | |
60 | template: | |
61 | src: youtube-viewer.conf.j2 | |
62 | dest: $XDG_CONFIG_HOME/youtube-viewer/youtube-viewer.conf | |
63 | - name: remind config file | |
eac82f28 IB |
64 | copy: |
65 | src: "remind/commands/{{ item }}" | |
66 | dest: "$XDG_CONFIG_HOME/remind/{{ item }}" | |
67 | loop: | |
68 | - work | |
397c4fed IB |
69 | - name: remind service file |
70 | copy: | |
71 | src: remind/remind@.service | |
72 | dest: $XDG_CONFIG_HOME/systemd/user/ | |
73 | notify: | |
74 | - reload systemd | |
86a3ca82 IB |
75 | - name: monitor home service file |
76 | copy: | |
77 | src: monitor_home.service | |
78 | dest: "$XDG_CONFIG_HOME/systemd/user/" | |
79 | notify: | |
80 | - reload systemd | |
eac82f28 | 81 | - meta: flush_handlers |
86a3ca82 IB |
82 | - name: enable monitor home |
83 | systemd: | |
84 | state: started | |
85 | scope: user | |
86 | name: monitor_home.service | |
87 | enabled: true | |
e7c9bf71 | 88 | - name: Clone password store |
39749dd7 | 89 | tags: ["no_bootstrap"] |
e7c9bf71 IB |
90 | git: |
91 | dest: "$XDG_DATA_HOME/pass" | |
92 | repo: gitolite@git.immae.eu:perso/Immae/Prive/Password_store | |
78ae9604 IB |
93 | - name: dconf configuration |
94 | # check: `dconf dump /` or `dconf-editor` | |
95 | dconf: | |
96 | key: "{{ item.0 }}" | |
97 | value: "{{ item.1 }}" | |
98 | loop: | |
99 | - ["/org/gnome/evince/default/continuous", "true"] | |
386f9271 | 100 | - ["/org/gnome/evince/default/fullscreen", "false"] |
78ae9604 IB |
101 | - ["/org/gtk/settings/file-chooser/sort-column", "'name'"] |
102 | - ["/org/gtk/settings/file-chooser/show-size-column", "true"] | |
103 | - ["/org/gtk/settings/file-chooser/show-hidden", "true"] | |
104 | - ["/org/gtk/settings/file-chooser/location-mode", "'path-bar'"] | |
105 | - ["/org/gtk/settings/file-chooser/sort-directories-first", "false"] | |
106 | - ["/org/gtk/settings/file-chooser/sort-order", "'ascending'"] | |
107 | - ["/org/gtk/settings/file-chooser/startup-mode", "'recent'"] | |
108 | - name: gtk2 configuration | |
109 | ini_file: | |
110 | path: "$XDG_CONFIG_HOME/gtk-2.0/gtkfilechooser.ini" | |
111 | section: "Filechooser Settings" | |
112 | option: "{{ item.0 }}" | |
113 | value: "{{ item.1 }}" | |
114 | no_extra_spaces: true | |
115 | loop: | |
116 | - [ "SortColumn", "name" ] | |
117 | - [ "ShowSizeColumn", "true" ] | |
118 | - [ "ShowHidden", "true" ] | |
119 | - [ "LocationMode", "path-bar" ] | |
120 | - [ "SortOrder", "ascending" ] | |
121 | - [ "StartupMode", "recent" ] | |
b4693a8e IB |
122 | - name: pavucontrol configuration |
123 | ini_file: | |
124 | path: "$XDG_CONFIG_HOME/pavucontrol.ini" | |
125 | section: "window" | |
126 | option: "{{ item.0 }}" | |
127 | value: "{{ item.1 }}" | |
128 | no_extra_spaces: true | |
129 | loop: | |
130 | - [ "sinkInputType", "0" ] | |
131 | - [ "sourceOutputType", "0" ] | |
132 | - [ "sinkType", "0" ] | |
133 | - [ "sourceType", "0" ] | |
134 | - [ "showVolumeMeters", "1" ] | |
587b6dd6 IB |
135 | - name: ssh config dirs |
136 | file: | |
137 | state: directory | |
138 | path: "$HOME/.ssh" | |
b4693a8e IB |
139 | - name: ssh files |
140 | copy: | |
141 | src: "ssh/{{ item }}" | |
142 | dest: "$HOME/.ssh/{{ item }}" | |
143 | loop: | |
144 | - known_hosts | |
145 | - rc | |
146 | - name: ssh configuration | |
147 | template: | |
148 | src: ssh_config.j2 | |
149 | dest: $HOME/.ssh/config | |
1a48017d IB |
150 | - name: bin dir |
151 | file: | |
152 | state: directory | |
153 | path: "$HOME/.local/bin" | |
154 | - name: add gio unwrapper | |
155 | copy: | |
156 | src: gio_unwrapper.sh | |
157 | dest: $HOME/.local/bin/gio_unwrapper | |
158 | mode: 0755 |