Provision Emacs development tools

This commit is contained in:
Fabio Scotto di Santolo
2026-06-21 18:41:48 +02:00
parent ae8a6161cd
commit 2fdda39395
5 changed files with 54 additions and 38 deletions

View File

@@ -30,7 +30,18 @@ desktop_source_tools:
desktop_binary_tools: []
desktop_npm_packages: "{{ ai_agents_npm_packages + [] }}"
desktop_npm_packages: >-
{{
ai_agents_npm_packages
+ [
{'name': '@mermaid-js/mermaid-cli', 'state': 'latest'},
{'name': 'vscode-langservers-extracted', 'state': 'latest'}
]
}}
desktop_uv_tools:
- debugpy
- python-lsp-server
desktop_common_dotfiles:
- name: XDG autostart entries

View File

@@ -170,11 +170,13 @@ desktop_hyprland_packages:
profile_packages:
- alacritty
- bash-language-server
- bluez
- bridge-utils
- ctags
- firefox
- deluge-gtk
- delve
- dnsmasq
- emacs-pgtk
- poppler-glib
@@ -186,6 +188,9 @@ profile_packages:
- gvfs-mtp
- gvfs-smb
- gufw
- golangci-lint
- gopls
- hunspell
- libvirt
- libspa-bluetooth
- libreoffice
@@ -209,6 +214,7 @@ profile_packages:
- ristretto
- rsync
- shotwell
- shfmt
- ruff
- terminus-font
- texlive

View File

@@ -552,3 +552,21 @@
when: desktop_npm_packages | length > 0
loop_control:
label: "{{ item.name }}"
- name: Install desktop Python tools with uv
tags: [packages, emacs]
ansible.builtin.command:
cmd: "uv tool install --upgrade {{ item }}"
become: true
become_user: "{{ username }}"
environment:
HOME: "{{ user_home }}"
register: profile_desktop_common_uv_tool_install
changed_when: >-
(profile_desktop_common_uv_tool_install.stdout | default('')
+ profile_desktop_common_uv_tool_install.stderr | default(''))
is regex('(?i)installed|updated')
loop: "{{ desktop_uv_tools | default([]) }}"
when: desktop_uv_tools | default([]) | length > 0
loop_control:
label: "{{ item }}"