mirror of
https://github.com/fscotto/infra.git
synced 2026-07-29 16:20:01 +00:00
Add Fedora GNOME desktop tools for nymph
This commit is contained in:
@@ -3,3 +3,55 @@ desktop_profile: gnome
|
|||||||
desktop_environment: gnome
|
desktop_environment: gnome
|
||||||
desktop_sessions_enabled: []
|
desktop_sessions_enabled: []
|
||||||
desktop_default_session: gnome
|
desktop_default_session: gnome
|
||||||
|
|
||||||
|
# Fedora Workstation/GNOME desktop applications. Keep this profile separate from
|
||||||
|
# workstation_* so nymph can remain a desktop laptop rather than a dev workstation.
|
||||||
|
fedora_desktop_packages:
|
||||||
|
# Fedora equivalents of the development/tooling packages previously pulled by
|
||||||
|
# the Void desktop profile.
|
||||||
|
- nodejs-bash-language-server
|
||||||
|
- bluez
|
||||||
|
- bridge-utils
|
||||||
|
- ctags
|
||||||
|
- delve
|
||||||
|
- dnsmasq
|
||||||
|
- poppler-glib
|
||||||
|
- poppler-utils
|
||||||
|
- fontconfig-devel
|
||||||
|
- freetype-devel
|
||||||
|
- golang
|
||||||
|
- golangci-lint
|
||||||
|
- gopls
|
||||||
|
- hunspell
|
||||||
|
- libvirt
|
||||||
|
- libreoffice
|
||||||
|
- liberation-fonts
|
||||||
|
- libvterm-devel
|
||||||
|
- libX11-devel
|
||||||
|
- libXft-devel
|
||||||
|
- meld
|
||||||
|
- mpv
|
||||||
|
- pdfarranger
|
||||||
|
- playerctl
|
||||||
|
- qemu
|
||||||
|
- qemu-img
|
||||||
|
- qemu-tools
|
||||||
|
- remmina
|
||||||
|
- rustup
|
||||||
|
- rsync
|
||||||
|
- shfmt
|
||||||
|
- ruff
|
||||||
|
- terminus-fonts
|
||||||
|
- texlive
|
||||||
|
- ty
|
||||||
|
- uv
|
||||||
|
- virt-manager
|
||||||
|
- virt-install
|
||||||
|
- wireplumber
|
||||||
|
- zstd
|
||||||
|
|
||||||
|
fedora_flatpak_packages:
|
||||||
|
- ch.protonmail.protonmail-bridge
|
||||||
|
- org.mozilla.thunderbird
|
||||||
|
|
||||||
|
fedora_npm_packages: "{{ ai_agents_npm_packages }}"
|
||||||
|
|||||||
@@ -63,8 +63,11 @@ workstation_host_linux_packages_fedora:
|
|||||||
- rclone
|
- rclone
|
||||||
- yubikey-manager
|
- yubikey-manager
|
||||||
|
|
||||||
workstation_flatpak_remote_name: flathub
|
fedora_flatpak_remote_name: flathub
|
||||||
workstation_flatpak_remote_url: https://dl.flathub.org/repo/flathub.flatpakrepo
|
fedora_flatpak_remote_url: https://dl.flathub.org/repo/flathub.flatpakrepo
|
||||||
|
|
||||||
|
workstation_flatpak_remote_name: "{{ fedora_flatpak_remote_name }}"
|
||||||
|
workstation_flatpak_remote_url: "{{ fedora_flatpak_remote_url }}"
|
||||||
workstation_flatpak_packages:
|
workstation_flatpak_packages:
|
||||||
- com.getpostman.Postman
|
- com.getpostman.Postman
|
||||||
- com.spotify.Client
|
- com.spotify.Client
|
||||||
|
|||||||
@@ -95,6 +95,11 @@
|
|||||||
else []
|
else []
|
||||||
)
|
)
|
||||||
+ (profile_packages | default([]))
|
+ (profile_packages | default([]))
|
||||||
|
+ (
|
||||||
|
(fedora_desktop_packages | default([]))
|
||||||
|
if 'graphical_desktop' in group_names
|
||||||
|
else []
|
||||||
|
)
|
||||||
+ (
|
+ (
|
||||||
(fedora_workstation_dev_packages | default(workstation_dev_packages | default([])))
|
(fedora_workstation_dev_packages | default(workstation_dev_packages | default([])))
|
||||||
if 'workstation_dev_fedora' in group_names
|
if 'workstation_dev_fedora' in group_names
|
||||||
@@ -129,23 +134,47 @@
|
|||||||
- "'workstation_dev_fedora' in group_names"
|
- "'workstation_dev_fedora' in group_names"
|
||||||
- (fedora_docker_packages | default([])) | length > 0
|
- (fedora_docker_packages | default([])) | length > 0
|
||||||
|
|
||||||
- name: Ensure Flathub remote is configured for Fedora workstation
|
- name: Install Fedora npm packages
|
||||||
|
tags: [packages, npm, ai_agents]
|
||||||
|
community.general.npm:
|
||||||
|
name: "{{ item.name }}"
|
||||||
|
global: true
|
||||||
|
state: "{{ item.state | default('present') }}"
|
||||||
|
loop: "{{ fedora_npm_packages | default([]) }}"
|
||||||
|
when: (fedora_npm_packages | default([])) | length > 0
|
||||||
|
loop_control:
|
||||||
|
label: "{{ item.name }}"
|
||||||
|
|
||||||
|
- name: Define Fedora Flatpak applications
|
||||||
|
tags: [packages]
|
||||||
|
ansible.builtin.set_fact:
|
||||||
|
packages_fedora_flatpak_packages: >-
|
||||||
|
{{
|
||||||
|
(
|
||||||
|
(fedora_flatpak_packages | default([]))
|
||||||
|
+ (host_flatpak_packages | default([]))
|
||||||
|
+ (
|
||||||
|
(workstation_flatpak_packages | default([]))
|
||||||
|
if 'workstation_host_linux' in group_names
|
||||||
|
else []
|
||||||
|
)
|
||||||
|
)
|
||||||
|
| unique
|
||||||
|
}}
|
||||||
|
|
||||||
|
- name: Ensure Flathub remote is configured on Fedora
|
||||||
tags: [packages]
|
tags: [packages]
|
||||||
community.general.flatpak_remote:
|
community.general.flatpak_remote:
|
||||||
name: "{{ workstation_flatpak_remote_name | default('flathub') }}"
|
name: "{{ fedora_flatpak_remote_name | default('flathub') }}"
|
||||||
state: present
|
state: present
|
||||||
flatpakrepo_url: "{{ workstation_flatpak_remote_url | default('https://dl.flathub.org/repo/flathub.flatpakrepo') }}"
|
flatpakrepo_url: "{{ fedora_flatpak_remote_url | default('https://dl.flathub.org/repo/flathub.flatpakrepo') }}"
|
||||||
when:
|
when: (packages_fedora_flatpak_packages | default([])) | length > 0
|
||||||
- "'workstation_host_linux' in group_names"
|
|
||||||
- (workstation_flatpak_packages | default([])) | length > 0
|
|
||||||
|
|
||||||
- name: Install Fedora workstation Flatpak applications
|
- name: Install Fedora Flatpak applications
|
||||||
tags: [packages]
|
tags: [packages]
|
||||||
community.general.flatpak:
|
community.general.flatpak:
|
||||||
name: "{{ workstation_flatpak_packages }}"
|
name: "{{ packages_fedora_flatpak_packages }}"
|
||||||
state: present
|
state: present
|
||||||
remote: "{{ workstation_flatpak_remote_name | default('flathub') }}"
|
remote: "{{ fedora_flatpak_remote_name | default('flathub') }}"
|
||||||
method: system
|
method: system
|
||||||
when:
|
when: (packages_fedora_flatpak_packages | default([])) | length > 0
|
||||||
- "'workstation_host_linux' in group_names"
|
|
||||||
- (workstation_flatpak_packages | default([])) | length > 0
|
|
||||||
|
|||||||
Reference in New Issue
Block a user