Restrict tmux and desktop tools to Void hosts

This commit is contained in:
Fabio Scotto di Santolo
2026-03-31 19:00:15 +02:00
parent e065ca6030
commit 38aa26779f
177 changed files with 11 additions and 102 deletions

View File

@@ -25,7 +25,6 @@ common_packages:
- fzf
- git
- jq
- tmux
- tree
- unzip
- vim
@@ -42,18 +41,10 @@ common_dotfiles:
src: .bash_profile
dest: .bash_profile
mode: "0644"
- name: .tmux.conf
src: .tmux.conf
dest: .tmux.conf
mode: "0644"
- name: .vimrc
src: .vimrc
dest: .vimrc
mode: "0644"
- name: tmux config directory
src: .tmux/
dest: .tmux/
mode: preserve
- name: bat config
src: .config/bat/.config/bat/
dest: .config/bat/

View File

@@ -152,6 +152,14 @@ desktop_common_dotfiles:
src: .themes.gitignore
dest: .themes.gitignore
mode: "0644"
- name: .tmux.conf
src: .tmux.conf
dest: .tmux.conf
mode: "0644"
- name: tmux config directory
src: .tmux/
dest: .tmux/
mode: preserve
- name: Emacs config
src: .emacs.d/
dest: .emacs.d/

View File

@@ -33,6 +33,7 @@ void_packages_base:
- seahorse
- socklog
- socklog-void
- tmux
- ufw
- void-repo-nonfree
- vpm

View File

@@ -14,6 +14,7 @@
group: "{{ effective_user_group }}"
mode: "0755"
loop: "{{ xdg_user_directories | default([]) }}"
when: "'void' in group_names"
- name: Copy common dotfiles
tags: [dotfiles, dotfiles:common]

View File

@@ -107,98 +107,6 @@
}}
state: present
- name: Set Ubuntu external tool release metadata
tags: [packages]
ansible.builtin.set_fact:
ubuntu_tools_tmp_dir: /tmp/ubuntu-tools
gitmux_version: v0.11.5
bw_version: 1.22.1
gitmux_arch: >-
{{
'amd64' if ansible_facts['architecture'] == 'x86_64'
else 'arm64' if ansible_facts['architecture'] in ['aarch64', 'arm64']
else ''
}}
- name: Ensure architecture is supported for gitmux binary
tags: [packages]
ansible.builtin.fail:
msg: "Unsupported architecture {{ ansible_facts['architecture'] }} for gitmux release binary"
when: gitmux_arch == ''
- name: Ensure architecture is supported for bw binary
tags: [packages]
ansible.builtin.fail:
msg: "Unsupported architecture {{ ansible_facts['architecture'] }} for bw release binary"
when: ansible_facts['architecture'] != 'x86_64'
- name: Ensure temporary directory exists for Ubuntu external tools
tags: [packages]
ansible.builtin.file:
path: "{{ ubuntu_tools_tmp_dir }}"
state: directory
mode: "0755"
- name: Set gitmux asset metadata
tags: [packages]
ansible.builtin.set_fact:
gitmux_asset: "gitmux_{{ gitmux_version }}_linux_{{ gitmux_arch }}.tar.gz"
- name: Download gitmux release archive
tags: [packages]
ansible.builtin.get_url:
url: "https://github.com/arl/gitmux/releases/download/{{ gitmux_version }}/{{ gitmux_asset }}"
dest: "{{ ubuntu_tools_tmp_dir }}/{{ gitmux_asset }}"
checksum: "sha256:https://github.com/arl/gitmux/releases/download/{{ gitmux_version }}/checksums.txt"
mode: "0644"
- name: Extract gitmux release archive
tags: [packages]
ansible.builtin.unarchive:
src: "{{ ubuntu_tools_tmp_dir }}/{{ gitmux_asset }}"
dest: "{{ ubuntu_tools_tmp_dir }}"
remote_src: true
- name: Install gitmux binary
tags: [packages]
ansible.builtin.copy:
src: "{{ ubuntu_tools_tmp_dir }}/gitmux"
dest: /usr/local/bin/gitmux
remote_src: true
owner: root
group: root
mode: "0755"
- name: Set bw asset metadata
tags: [packages]
ansible.builtin.set_fact:
bw_asset: "bw-linux-{{ bw_version }}.zip"
- name: Download bw release archive
tags: [packages]
ansible.builtin.get_url:
url: "https://github.com/bitwarden/cli/releases/download/v{{ bw_version }}/{{ bw_asset }}"
dest: "{{ ubuntu_tools_tmp_dir }}/{{ bw_asset }}"
checksum: "sha256:https://github.com/bitwarden/cli/releases/download/v{{ bw_version }}/bw-linux-sha256-{{ bw_version }}.txt"
mode: "0644"
- name: Extract bw release archive
tags: [packages]
ansible.builtin.unarchive:
src: "{{ ubuntu_tools_tmp_dir }}/{{ bw_asset }}"
dest: "{{ ubuntu_tools_tmp_dir }}"
remote_src: true
- name: Install bw binary
tags: [packages]
ansible.builtin.copy:
src: "{{ ubuntu_tools_tmp_dir }}/bw"
dest: /usr/local/bin/bw
remote_src: true
owner: root
group: root
mode: "0755"
- name: Add user to docker group
tags: [packages]
ansible.builtin.user: