Compare commits
No commits in common. "1b6cc39dada2b22931d4d79ebf6af2eb32149a21" and "3ff188c80bcb04b3c6db2f39ea0efbf1323d1ed5" have entirely different histories.
1b6cc39dad
...
3ff188c80b
2
config/automatrop/.gitignore
vendored
2
config/automatrop/.gitignore
vendored
|
@ -1 +1 @@
|
|||
self_name
|
||||
self_hostname
|
||||
|
|
|
@ -167,7 +167,6 @@
|
|||
loop:
|
||||
- pulseaudio
|
||||
- mpd
|
||||
when: has_systemd
|
||||
|
||||
# TODO bar (might change bar in the future, so...)
|
||||
# TODO highlight (there IS a template but the colors look different from vim and mostly the same from when there's no config)
|
||||
|
|
|
@ -4,17 +4,9 @@
|
|||
arch: "{{ ansible_lsb.id == 'Arch' }}"
|
||||
manjaro: "{{ ansible_lsb.id == 'Manjaro' or ansible_lsb.id == 'Manjaro-ARM' }}"
|
||||
termux: "{{ ansible_distribution == 'OtherLinux' and ansible_python.executable == '/data/data/com.termux/files/usr/bin/python' }}"
|
||||
debian_based: "{{ ansible_distribution == 'Debian' or ansible_distribution == 'Ubuntu' }}"
|
||||
debian: "{{ ansible_distribution == 'Debian' }}"
|
||||
ubuntu: "{{ ansible_distribution == 'Ubuntu' }}"
|
||||
junest: "{{ ansible_distribution == 'Archlinux' and ansible_is_chroot }}" # TODO Check if /etc/junest exists
|
||||
tags:
|
||||
- always
|
||||
|
||||
- name: Set composed facts
|
||||
set_fact:
|
||||
debian_based: "{{ debian or ubuntu }}"
|
||||
can_chown: "{{ not junest }}"
|
||||
has_systemd: "{{ not junest }}"
|
||||
tags:
|
||||
- always
|
||||
# TODO Make this a real Ansible fact maybe?
|
||||
|
|
|
@ -15,9 +15,3 @@
|
|||
listen: "software changed"
|
||||
when: root_access
|
||||
when: arch_based
|
||||
|
||||
- name: update pacman cache
|
||||
pacman:
|
||||
update_cache: yes
|
||||
become: yes
|
||||
when: arch_based
|
||||
|
|
|
@ -59,30 +59,6 @@
|
|||
|
||||
# Arch configuration
|
||||
|
||||
# TODO Patch sudo-fake so it allows using -u so `become` works
|
||||
|
||||
- name: Enable multilib repo
|
||||
lineinfile:
|
||||
path: /etc/pacman.conf
|
||||
regexp: '^#?\s*\[multilib\]$'
|
||||
line: '[multilib]'
|
||||
become: yes
|
||||
when: arch_based and ansible_architecture == "x86_64"
|
||||
notify: udpate pacman cache
|
||||
|
||||
- name: Configure multilib repo
|
||||
lineinfile:
|
||||
path: /etc/pacman.conf
|
||||
regexp: '^#?\s*Include\s*=\s*/etc/pacman.d/mirrorlist'
|
||||
line: 'Include = /etc/pacman.d/mirrorlist'
|
||||
insertafter: '^\[multilib\]$'
|
||||
become: yes
|
||||
when: arch_based and ansible_architecture == "x86_64"
|
||||
notify: udpate pacman cache
|
||||
|
||||
- name: Update cache if needed
|
||||
meta: flush_handlers
|
||||
|
||||
- name: Install ccache
|
||||
pacman:
|
||||
name: ccache
|
||||
|
@ -114,6 +90,7 @@
|
|||
replace: "CFLAGS=\\1\\2"
|
||||
become: yes
|
||||
when: arch_based
|
||||
tags: g
|
||||
|
||||
- name: Change -march to native from makepkg CFLAGS
|
||||
replace:
|
||||
|
@ -122,6 +99,7 @@
|
|||
replace: "CFLAGS=\\1-march=native\\2\\3"
|
||||
become: yes
|
||||
when: arch_based
|
||||
tags: g
|
||||
|
||||
- name: Set makepkg MAKEFLAGS
|
||||
replace:
|
||||
|
@ -162,30 +140,24 @@
|
|||
|
||||
|
||||
# Install alternative package managers
|
||||
- name: List packages from base-devel
|
||||
command: pacman -Sqg base-devel
|
||||
register: base_devel_packages
|
||||
changed_when: no
|
||||
check_mode: no
|
||||
|
||||
- name: Install dependencies for AUR helpers
|
||||
pacman:
|
||||
name: "{{ (base_devel_packages.stdout | split('\n') | reject('eq', 'sudo')) + ['fakeroot'] }}"
|
||||
name:
|
||||
- fakeroot
|
||||
- base-devel
|
||||
become: yes
|
||||
when: arch_based
|
||||
# Do not install sudo because maybe sudo-fake is installed (otherwise it conflicts)
|
||||
# It should already be installed already anyway
|
||||
when: arch_based and root_access
|
||||
|
||||
- name: Install AUR package manager (Arch)
|
||||
aur:
|
||||
name: yay-bin
|
||||
when: arch
|
||||
when: arch and root_access
|
||||
|
||||
- name: Install AUR package manager (Manjaro)
|
||||
pacman:
|
||||
name: yay
|
||||
become: yes
|
||||
when: manjaro
|
||||
when: manjaro and root_access
|
||||
# Not sure if regular Manjaro has yay in its community packages,
|
||||
# but Manjaro-ARM sure does
|
||||
|
||||
|
@ -200,6 +172,13 @@
|
|||
packages: "{{ query('template', 'package_manager.j2')[0].split('\n')[:-1]|sort|unique }}"
|
||||
tags: softwarelist
|
||||
|
||||
- name: Check if list of packages changed
|
||||
copy:
|
||||
content: "{% for package in packages %}{{ package }}\n{% endfor %}"
|
||||
dest: "{{ ansible_user_dir }}/.cache/automatrop/package_manager"
|
||||
notify: "software changed"
|
||||
tags: softwarelist
|
||||
|
||||
- name: Install packages (Arch-based)
|
||||
aur:
|
||||
name: "{{ packages }}"
|
||||
|
@ -210,14 +189,7 @@
|
|||
use: yay
|
||||
notify: "software changed"
|
||||
tags: softwarelist
|
||||
when: arch_based
|
||||
|
||||
- name: Check if list of packages changed
|
||||
copy:
|
||||
content: "{% for package in packages %}{{ package }}\n{% endfor %}"
|
||||
dest: "{{ ansible_user_dir }}/.cache/automatrop/package_manager"
|
||||
notify: "software changed"
|
||||
tags: softwarelist
|
||||
when: arch_based and root_access
|
||||
|
||||
# translate-shell
|
||||
# $ curl -L git.io/trans > ~/.local/bin/trans
|
||||
|
|
|
@ -5,7 +5,7 @@ rsync
|
|||
borg
|
||||
syncthing
|
||||
{% if arch_based %}
|
||||
{% if ansible_architecture == 'x86_64' and can_chown %}
|
||||
{% if ansible_architecture == 'x86_64' %}
|
||||
freefilesync-bin
|
||||
{# Not worth the compilation if you can't have the binaries #}
|
||||
{% endif %}
|
||||
|
|
|
@ -1,9 +1,7 @@
|
|||
moreutils
|
||||
man
|
||||
visidata
|
||||
{% if can_chown or not arch_based %}
|
||||
insect
|
||||
{% endif %}
|
||||
translate-shell
|
||||
gnupg
|
||||
{# Editor #}
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
vim_variants:
|
||||
- vim
|
||||
- nvim
|
||||
tags: g
|
||||
# TODO vim-minimal for bsh
|
||||
# TODO Select those in a clever way
|
||||
|
||||
|
@ -24,6 +25,7 @@
|
|||
src: loader.j2
|
||||
dest: "{{ ansible_user_dir }}/.config/vim/loader.vim"
|
||||
mode: "u=rw,g=r,o=r"
|
||||
tags: g
|
||||
|
||||
- name: Install theme
|
||||
template:
|
||||
|
@ -52,3 +54,4 @@
|
|||
loop: "{{ vim_variants }}"
|
||||
loop_control:
|
||||
loop_var: variant
|
||||
tags: g
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
gho.geoffrey.frogeye.fr
|
|
@ -50,7 +50,7 @@ bindsym $mod+Shift+d exec --no-startup-id rofi -modi drun -show drun
|
|||
|
||||
# Start Applications
|
||||
# bindsym $mod+Return exec urxvtc
|
||||
bindsym $mod+Return exec alacritty -e zsh
|
||||
bindsym $mod+Return exec alacritty
|
||||
bindsym $mod+Shift+Return exec urxvt
|
||||
bindsym $mod+p exec thunar
|
||||
bindsym $mod+m exec qutebrowser --override-restore --backend=webengine
|
||||
|
|
Loading…
Reference in a new issue