Add desktop ollama service flag

This commit is contained in:
Fabio Scotto di Santolo
2026-04-21 17:02:28 +02:00
parent b9e896a56a
commit 3ef9356737
4 changed files with 10 additions and 1 deletions

View File

@@ -56,6 +56,7 @@ Ansible-driven personal infrastructure repo for Void desktops, Linux workstation
- `profile_desktop_common` owns the shared desktop bootstrap. - `profile_desktop_common` owns the shared desktop bootstrap.
- `.emacs.d` is deployed by a dedicated `profile_desktop_common` task tagged `emacs`. - `.emacs.d` is deployed by a dedicated `profile_desktop_common` task tagged `emacs`.
- User services are managed by `turnstile` and live under `dotfiles/desktop/.config/service/`. - User services are managed by `turnstile` and live under `dotfiles/desktop/.config/service/`.
- `desktop_ollama_enabled` controls whether the user `ollama` service is present; default is `false` and hosts can override it in `host_vars`.
- `ssh-agent` runs under `turnstile` with stable socket `~/.local/state/ssh-agent/socket`. - `ssh-agent` runs under `turnstile` with stable socket `~/.local/state/ssh-agent/socket`.
- Critical session entrypoints: - Critical session entrypoints:
- `dotfiles/desktop/.xinitrc` - `dotfiles/desktop/.xinitrc`

View File

@@ -88,7 +88,7 @@ Lo stato attuale del profilo desktop include, tra le altre cose:
- `turnstile` per i servizi utente, inclusi `emacs` e `ssh-agent` - `turnstile` per i servizi utente, inclusi `emacs` e `ssh-agent`
- `ssh-agent` con socket stabile condiviso tra shell, SSH ed Emacs in `~/.local/state/ssh-agent/socket` - `ssh-agent` con socket stabile condiviso tra shell, SSH ed Emacs in `~/.local/state/ssh-agent/socket`
- `.emacs.d` distribuito da un task dedicato Ansible con tag `emacs` - `.emacs.d` distribuito da un task dedicato Ansible con tag `emacs`
- `ollama` eseguito via container Podman - `ollama` eseguito via container Podman, con servizio utente controllato da `desktop_ollama_enabled` (default `false`)
- `tmux` con plugin gestiti da TPM al bootstrap del profilo desktop - `tmux` con plugin gestiti da TPM al bootstrap del profilo desktop
- Flatpak con remoto Flathub - Flatpak con remoto Flathub
- GNOME Keyring e bootstrap della posta via script dedicato - GNOME Keyring e bootstrap della posta via script dedicato

View File

@@ -8,6 +8,7 @@ desktop_default_session: i3
desktop_default_session_env: xorg desktop_default_session_env: xorg
desktop_restart_emptty_automatically: false desktop_restart_emptty_automatically: false
desktop_emptty_session_error_logging: disabled desktop_emptty_session_error_logging: disabled
desktop_ollama_enabled: false
desktop_common_packages: desktop_common_packages:
- brightnessctl - brightnessctl

View File

@@ -264,6 +264,13 @@
loop_control: loop_control:
label: "{{ item.dest }}" label: "{{ item.dest }}"
- name: Remove disabled ollama user service
tags: [dotfiles, dotfiles:desktop, services]
ansible.builtin.file:
path: "{{ user_home }}/.config/service/ollama"
state: absent
when: not (desktop_ollama_enabled | default(false) | bool)
- name: Copy Emacs desktop dotfiles - name: Copy Emacs desktop dotfiles
tags: [dotfiles, dotfiles:desktop, emacs] tags: [dotfiles, dotfiles:desktop, emacs]
ansible.builtin.copy: ansible.builtin.copy: