Browse Source
Move install-prefs to Ansible
Move install-prefs to Ansible
I never ended up moving to this installation system, did I?master
9 changed files with 124 additions and 138 deletions
-
2config/automatrop/group_vars/all
-
1config/automatrop/host_vars/curacao.geoffrey.frogeye.fr
-
12config/automatrop/roles/desktop_environment/tasks/main.yml
-
21config/automatrop/roles/dotfiles/tasks/main.yml
-
64config/automatrop/roles/software/tasks/main.yml
-
5config/automatrop/roles/software/templates/snippets/pm_system.j2
-
10config/automatrop/roles/system/files/us_qwert_alt_numpad.patch
-
109config/automatrop/roles/system/tasks/main.yml
-
38config/scripts/install-prefs
@ -1,9 +1,28 @@ |
|||
- name: Ensure directories for applications are present |
|||
file: |
|||
state: directory |
|||
path: "{{ ansible_user_dir }}/{{ item }}" |
|||
mode: "u=rwx,g=rx,o=rx" |
|||
with_items: |
|||
- ".cache/zsh" |
|||
- ".cache/mpd" |
|||
- ".ssh" |
|||
- ".local/bin" |
|||
|
|||
- name: Install dotfiles repository |
|||
git: |
|||
repo: https://git.frogeye.fr/geoffrey/dotfiles.git |
|||
repo: "{% if has_forge_access %}git@git.frogeye.fr:{% else %}https://git.frogeye.fr/{% endif %}geoffrey/dotfiles.git" |
|||
dest: "{{ ansible_user_dir }}/.dotfiles" |
|||
update: "{{ not has_forge_access }}" |
|||
notify: install dotfiles |
|||
|
|||
- name: Install python dependencies for scripts |
|||
pip: |
|||
requirements: "{{ ansible_user_dir }}/.dotfiles/config/scripts/requirements.txt" |
|||
|
|||
- name: Install Neovim plugins |
|||
command: "nvim +PlugUpgrade +PlugUpdate +PlugInstall +qall" |
|||
failed_when: no |
|||
changed_when: yes |
|||
# TODO Build Neovim configuration better |
|||
|
@ -0,0 +1,5 @@ |
|||
etckeeper |
|||
tlp |
|||
dhcpcd |
|||
wpa_supplicant |
|||
chrony |
@ -0,0 +1,10 @@ |
|||
*************** |
|||
*** 6,11 **** |
|||
--- 6,12 ----
|
|||
{ |
|||
include "us(basic)" |
|||
include "level3(ralt_switch)" |
|||
+ include "keypad(oss)"
|
|||
|
|||
name[Group1]= "US keyboard with french symbols - AltGr combination"; |
|||
|
@ -1,38 +0,0 @@ |
|||
#!/usr/bin/env bash |
|||
|
|||
# Installs user preferences the way I like it |
|||
|
|||
# NOTE In the process of migrating to a new install workflow. |
|||
# This holds stuff that have not been migrated yet. |
|||
# TODO A lot of stuff |
|||
|
|||
mkdir -p $HOME/.cache |
|||
mkdir -p $HOME/.cache/zsh |
|||
mkdir -p $HOME/.cache/mpd |
|||
mkdir -p $HOME/.ssh |
|||
# mkdir -p $HOME/.local/bin |
|||
|
|||
echo "Doing stuff cuz" |
|||
vim +PlugUpgrade +PlugUpdate +PlugInstall +qall |
|||
|
|||
systemctl enable pulseaudio --user --now |
|||
systemctl enable mpd --user --now |
|||
|
|||
echo '# Alt keys on keypad |
|||
# In /usr/share/X11/xkb/symbols/us_qwerty-fr add: |
|||
# include "keypad(oss)" |
|||
' |
|||
|
|||
### RECYCLE BIN |
|||
# Help yourself |
|||
|
|||
# # translate-shell |
|||
# curl -L git.io/trans > ~/.local/bin/trans |
|||
# chmod +x ~/.local/bin/trans |
|||
|
|||
|
|||
# # sct |
|||
# TMP=$(mktemp /tmp/XXXXXXXXXX.c) |
|||
# wget https://gist.githubusercontent.com/ajnirp/208c03d3aa7f02c743d2/raw/55bf3eed25739173d8be57b5179ed5542cf40ed6/sct.c -O $TMP |
|||
# cc $TMP --std=c99 -lX11 -lXrandr -o $HOME/.local/bin/sct |
|||
# rm $TMP |
Write
Preview
Loading…
Cancel
Save
Reference in new issue