]> git.immae.eu Git - perso/Immae/Config/Ansible.git/blob - roles/tools/tasks/main.yml
Add nixpkgs configuration
[perso/Immae/Config/Ansible.git] / roles / tools / tasks / main.yml
1 ---
2 - name: Import other tools
3 include_role:
4 name: "{{ tool_import_item }}"
5 loop:
6 - git
7 - gnupg
8 loop_control:
9 loop_var: tool_import_item
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
23 - nixpkgs
24 - name: config files
25 copy:
26 src: "{{ item }}"
27 dest: "$XDG_CONFIG_HOME/{{ item }}"
28 loop:
29 - htop/htoprc
30 - mplayer/config
31 - nixpkgs/config.nix
32 - name: template config files
33 template:
34 src: "{{ item }}.j2"
35 dest: "$XDG_CONFIG_HOME/{{ item }}"
36 loop:
37 - wgetrc
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
48 - name: vim config file
49 copy:
50 src: vimrc
51 dest: $XDG_CONFIG_HOME/vim/vimrc
52 notify:
53 - run PlugInstall
54 - meta: flush_handlers
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
64 copy:
65 src: "remind/commands/{{ item }}"
66 dest: "$XDG_CONFIG_HOME/remind/{{ item }}"
67 loop:
68 - work
69 - name: remind service file
70 copy:
71 src: remind/remind@.service
72 dest: $XDG_CONFIG_HOME/systemd/user/
73 notify:
74 - reload systemd
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
81 - meta: flush_handlers
82 - name: enable monitor home
83 systemd:
84 state: started
85 scope: user
86 name: monitor_home.service
87 enabled: true
88 - name: Clone password store
89 tags: ["no_bootstrap"]
90 git:
91 dest: "$XDG_DATA_HOME/pass"
92 repo: gitolite@git.immae.eu:perso/Immae/Prive/Password_store
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"]
100 - ["/org/gnome/evince/default/fullscreen", "false"]
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" ]
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" ]
135 - name: ssh config dirs
136 file:
137 state: directory
138 path: "$HOME/.ssh"
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
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