more packages fixed

- removed nushell. Not using it, not going to use again anytime soon
This commit is contained in:
Matthew Stobbs
2025-02-20 12:22:50 -07:00
parent 48e67be99b
commit c0400949c3
34 changed files with 132 additions and 206 deletions

View File

@@ -3,7 +3,7 @@
- name: Install cargo pkg - name: Install cargo pkg
become: "{{ archive_become }}" become: "{{ archive_become }}"
community.general.cargo: community.general.cargo:
name: "{{ pkg.cargo.pkg }}" name: "{{ pkg.name }}"
version: "{{ pkg.ver }}" version: "{{ pkg.vers }}"
path: "{{ paths.cargo }}" path: "{{ paths.cargo }}"
locked: "{{ pkg.cargo.locked }}" locked: "{{ pkg.locked | default(true) }}"

8
tasks/config/broot.yml Normal file
View File

@@ -0,0 +1,8 @@
---
- name: Set broot config
ansible.builtin.set_fact:
broot:
vers: "{{ pkgconfig.broot.version }}"
name: broot
locked: true
deps: "{{ pkgconfig.broot.build_deps[ansible_os_family] }}"

7
tasks/config/choose.yml Normal file
View File

@@ -0,0 +1,7 @@
---
- name: Set choose config
ansible.builtin.set_fact:
choose:
name: choose
vers: "{{ pkgconfig.choose.version }}"
locked: true

6
tasks/config/git.yml Normal file
View File

@@ -0,0 +1,6 @@
# vim: set filetype=yaml.ansible :
---
- name: Set git config
ansible.builtin.set_fact:
git:
pkgs: "{{ pkgconfig.git.pkgs[ansible_system] }}"

View File

@@ -1,3 +1,8 @@
# vim: set filetype=yaml.ansible : # vim: set filetype=yaml.ansible :
--- ---
use_flatpak: false - name: Set libreoffice config
ansible.builtin.set_fact:
libreoffice:
method: "{{ pkgconfig.libreoffice.method }}"
flatpak: "{{ pkgconfig.libreoffice.flatpak }}"
syspkgs: "{{ pkgconfig.libreoffice[ansible_os_family] }}"

View File

@@ -1,4 +1,9 @@
# vim: set filetype=yaml.ansible : # vim: set filetype=yaml.ansible :
--- ---
version: 0.14.0 - name: Set neovide config
install_prefix: "{{ default_install_prefix }}" ansible.builtin.set_fact:
neovide:
name: neovide
deps: "{{ pkgconfig.neovide.build_deps[ansible_os_family] }}"
vers: "{{ pkgconfig.neovide.version }}"
locked: true

View File

@@ -1,3 +0,0 @@
# vim: set filetype=yaml.ansible :
---
install_extra: true

5
tasks/config/python3.yml Normal file
View File

@@ -0,0 +1,5 @@
---
- name: Set python3 config
ansible.builtin.set_fact:
python3:
pkgs: "{{ pkgconfig.python3.pkgs[ansible_system] }}"

7
tasks/config/xh.yml Normal file
View File

@@ -0,0 +1,7 @@
---
- name: Set xh config
ansible.builtin.set_fact:
xh:
vers: "{{ pkgconfig.xh.version }}"
name: xh
locked: true

View File

@@ -1,5 +1,8 @@
# vim: set filetype=yaml.ansible : # vim: set filetype=yaml.ansible :
--- ---
version: 0.13.0 - name: Set zig configuration
install_prefix: "{{ default_install_prefix }}" ansible.builtin.set_fact:
install_path: /opt/zig zig:
version: 0.13.0
install_prefix: "{{ default_install_prefix }}"
install_path: /opt/zig

View File

@@ -1,5 +1,5 @@
# vim: set filetype=yaml.ansible : # vim: set filetype=yaml.ansible :
--- ---
- name: append to pkgs - name: Append to pkgs
ansible.builtin.set_fact: ansible.builtin.set_fact:
syspkgs: "{{ syspkgs + [ 'ansible-lint' ] }}" pkg_sys: "{{ pkg_sys + ['ansible-lint'] }}"

View File

@@ -1,5 +1,5 @@
# vim: set filetype=yaml.ansible : # vim: set filetype=yaml.ansible :
--- ---
- name: append to syspkgs - name: Append to pkg_sys
ansible.builtin.set_fact: ansible.builtin.set_fact:
syspkgs: "{{ syspkgs + [ 'bat' ] }}" pkg_sys: "{{ pkg_sys + ['bat'] }}"

View File

@@ -1,11 +1,11 @@
# vim: set filetype=yaml.ansible : # vim: set filetype=yaml.ansible :
--- ---
- name: append to pkgs - name: Append to pkgs
ansible.builtin.set_fact: ansible.builtin.set_fact:
syspkgs: "{{ syspkgs + [ 'blender' ] }}" pkg_sys: "{{ pkg_sys + ['blender'] }}"
when: ansible_os_family != 'Darwin' when: ansible_os_family != 'Darwin'
- name: append to caskpkgs - name: Append to caskpkgs
ansible.builtin.set_fact: ansible.builtin.set_fact:
caskpkgs: "{{ caskpkgs + [ 'blender' ] }}" pkg_cask: "{{ pkg_cask + ['blender'] }}"
when: ansible_os_family == 'Darwin' when: ansible_os_family == 'Darwin'

View File

@@ -1,21 +1,14 @@
# vim: set filetype=yaml.ansible : # vim: set filetype=yaml.ansible :
--- ---
- name: linux specific install - name: Append to pkg_sys and pkg_cargo
block:
- ansible.builtin.include_tasks:
file: "pkgs/rust.yml"
when: pkgconfig_rust is undefined
- name: append to syspkgs and cargopkgs
ansible.builtin.set_fact:
syspkgs: "{{ syspkgs + pkgconfig.broot.deps[ansible_os_family] }}"
cargopkgs: "{{ cargopkgs + [ 'broot' ] }}"
when: when:
- ansible_os_family != 'Darwin' - ansible_os_family != 'Darwin'
- name: append to syspkgs
ansible.builtin.set_fact: ansible.builtin.set_fact:
syspkgs: "{{ syspkgs + [ 'broot' ] }}" pkg_sys: "{{ pkg_sys + broot.deps }}"
pkg_cargo: "{{ pkg_cargo + [broot] }}"
- name: Append to pkg_sys
when: when:
- ansible_os_family == 'Darwin' - ansible_os_family == 'Darwin'
ansible.builtin.set_fact:
pkg_sys: "{{ pkg_sys + ['broot'] }}"

View File

@@ -1,5 +1,5 @@
# vim: set filetype=yaml.ansible : # vim: set filetype=yaml.ansible :
--- ---
- name: append to pkgs - name: Append to pkgs
ansible.builtin.set_fact: ansible.builtin.set_fact:
syspkgs: "{{ syspkgs + [ 'btop' ] }}" pkg_sys: "{{ pkg_sys + ['btop'] }}"

View File

@@ -1,19 +1,13 @@
# vim: set filetype=yaml.ansible : # vim: set filetype=yaml.ansible :
--- ---
- name: linux specific - name: Append to cargopkgs
block:
- ansible.builtin.include_tasks:
file: "pkgs/rust.yml"
when:
- pkgconfig_rust is undefined
- name: append to cargopkgs
ansible.builtin.set_fact:
cargopkgs: "{{ cargopkgs + [ 'choose' ] }}"
when: when:
- ansible_os_family != 'Darwin' - ansible_os_family != 'Darwin'
- name: append to syspkgs
ansible.builtin.set_fact: ansible.builtin.set_fact:
syspkgs: "{{ syspkgs + [ 'choose-rust' ] }}" pkg_cargo: "{{ pkg_cargo + [choose] }}"
- name: Append to pkg_sys
when: when:
- ansible_os_family == 'Darwin' - ansible_os_family == 'Darwin'
ansible.builtin.set_fact:
pkg_sys: "{{ pkg_sys + ['choose-rust'] }}"

View File

@@ -1,5 +1,5 @@
# vim: set filetype=yaml.ansible : # vim: set filetype=yaml.ansible :
--- ---
- name: append to pkgs - name: Append to pkgs
ansible.builtin.set_fact: ansible.builtin.set_fact:
syspkgs: "{{ syspkgs + [ 'editorconfig' ] }}" pkg_sys: "{{ pkg_sys + ['editorconfig'] }}"

View File

@@ -1,5 +1,5 @@
# vim: set filetype=yaml.ansible : # vim: set filetype=yaml.ansible :
--- ---
- name: append to pkgs - name: Append to pkgs
ansible.builtin.set_fact: ansible.builtin.set_fact:
syspkgs: "{{ syspkgs + [ 'fzf' ] }}" pkg_sys: "{{ pkg_sys + ['fzf'] }}"

View File

@@ -1,8 +1,5 @@
# vim: set filetype=yaml.ansible : # vim: set filetype=yaml.ansible :
--- ---
- ansible.builtin.set_fact: - name: Append to pkgs
git: true
- name: append to pkgs
ansible.builtin.set_fact: ansible.builtin.set_fact:
syspkgs: "{{ syspkgs + pkgconfig.git.pkgs[ansible_system] }}" pkg_sys: "{{ pkg_sys + git.pkgs }}"

View File

@@ -1,30 +1,23 @@
# vim: set filetype=yaml.ansible : # vim: set filetype=yaml.ansible :
--- ---
- ansible.builtin.include_vars: - name: Linux specific methods
file: libreoffice.yml
name: _libreoffice
- ansible.builtin.set_fact:
pkgconfig_libreoffice: "{{ _libreoffice | ansible.builtin.combine(pkgconfig.libreoffice) }}"
- block:
- ansible.builtin.include_tasks:
file: pkgs/flatpak.yml
when: flatpak is undefined
- name: append to flatpkgs
ansible.builtin.set_fact:
flatpkgs: "{{ flatpkgs + pkgconfig_libreoffice.flatpak }}"
when: when:
- ansible_os_family != 'Darwin' - ansible_system == 'Linux'
- pkgconfig_libreoffice.use_flatpak block:
- name: Append to flatpkgs
- block:
- ansible.builtin.set_fact:
syspkgs: "{{ syspkgs + pkgconfig_libreoffice[ansible_os_family] }}"
when: when:
- ansible_os_family != 'Darwin' - libreoffice.method == 'flatpak'
- not pkgconfig_libreoffice.use_flatpak
- name: append to caskpkgs
ansible.builtin.set_fact: ansible.builtin.set_fact:
caskpkgs: "{{ caskpkgs + [ 'libreoffice' ] }}" flatpkgs: "{{ flatpkgs + libreoffice.flatpak }}"
when: ansible_os_family == 'Darwin'
- name: Append to pkg_sys
when:
- libreoffice.method == 'sys'
ansible.builtin.set_fact:
sys_pkg: "{{ sys_pkg + libreoffice.syspkgs }}"
- name: Append to caskpkgs
when:
- ansible_system == 'Darwin'
ansible.builtin.set_fact:
pkg_cask: "{{ pkg_cask + ['libreoffice'] }}"

View File

@@ -1,21 +1,14 @@
# vim: set filetype=yaml.ansible : # vim: set filetype=yaml.ansible :
--- ---
- ansible.builtin.include_vars: - name: Append to pkgs
file: neovide.yml when:
name: _neovide - ansible_system == 'Linux'
- ansible.builtin.set_fact:
pkgconfig_neovide: "{{ _neovide | ansible.builtin.combine(pkgconfig.neovide) }}"
- ansible.builtin.include_tasks:
file: pkgs/rust.yml
when: pkgconfig_rust is undefined
- name: append to pkgs
ansible.builtin.set_fact: ansible.builtin.set_fact:
syspkgs: "{{ syspkgs + pkgconfig_neovide.deps[ansible_os_family] }}" pkg_sys: "{{ pkg_sys + neovide.deps }}"
srcpkgs: "{{ srcpkgs + [ 'neovide' ] }}" pkg_cargo: "{{ pkg_cargo + [neovide] }}"
when: ansible_system == 'Linux'
- name: append neovide to caskpkgs - name: Append neovide to caskpkgs
when:
- ansible_system == 'Darwin'
ansible.builtin.set_fact: ansible.builtin.set_fact:
caskpkgs: "{{ caskpkgs + [ 'neovide' ] }}" pkg_cask: "{{ pkg_cask + ['neovide'] }}"
when: ansible_system == 'Darwin'

View File

@@ -7,7 +7,7 @@
- name: Append to caskpkgs - name: Append to caskpkgs
ansible.builtin.set_fact: ansible.builtin.set_fact:
pkg_cask: "{{ pkg_cask + [nerdfonts.fonts[font].brew] }}" pkg_cask: "{{ pkg_cask + [pkgconfig.nerdfonts.fonts[font].brew] }}"
loop: "{{ nerdfonts.fonts }}" loop: "{{ nerdfonts.fonts }}"
loop_control: loop_control:
loop_var: font loop_var: font

View File

@@ -1,26 +0,0 @@
# vim: set filetype=yaml.ansible :
---
- ansible.builtin.include_vars:
file: nushell.yml
name: _nushell
- ansible.builtin.set_fact:
pkgconfig_nushell: "{{ _nushell | ansible.builtin.combine(pkgconfig.nushell) }}"
- ansible.builtin.include_tasks:
file: pkgs/rust.yml
when: pkgconfig_rust is undefined
- ansible.builtin.include_tasks:
file: pkgs/carapace.yml
when: pkgconfig_carapace is undefined
- name: append to pkgs
ansible.builtin.set_fact:
syspkgs: "{{ syspkgs + pkgconfig_nushell.deps[ansible_os_family] }}"
cargopkgs: "{{ cargopkgs + pkgconfig_nushell.pkgs[ansible_os_family] }}"
- name: add nushell extras
ansible.builtin.set_fact:
cargopkgs: "{{ cargopkgs + pkgconfig_nushell.nupkgs_extra }}"
when:
pkgconfig_nushell.install_extra

View File

@@ -1,7 +1,5 @@
# vim: set filetype=yaml.ansible : # vim: set filetype=yaml.ansible :
--- ---
- ansible.builtin.set_fact: - name: Append to pkgs
pipx: true
- name: append to pkgs
ansible.builtin.set_fact: ansible.builtin.set_fact:
syspkgs: "{{ syspkgs + [ 'pipx' ] }}" pkg_sys: "{{ pkg_sys + ['pipx'] }}"

View File

@@ -1,8 +1,5 @@
# vim: set filetype=yaml.ansible : # vim: set filetype=yaml.ansible :
--- ---
- ansible.builtin.set_fact: - name: Append to pkgs
python3: true
- name: append to pkgs
ansible.builtin.set_fact: ansible.builtin.set_fact:
syspkgs: "{{ syspkgs + pkgconfig.python3.pkgs[ansible_system] }}" pkg_sys: "{{ pkg_sys + python3.pkgs }}"

View File

@@ -1,7 +1,5 @@
# vim: set filetype=yaml.ansible : # vim: set filetype=yaml.ansible :
--- ---
- name: append to pkgs - name: Append to pkgs
ansible.builtin.set_fact: ansible.builtin.set_fact:
syspkgs: "{{ syspkgs + [ 'tmux' ] }}" pkg_sys: "{{ pkg_sys + ['tmux'] }}"
tags:
- packages

View File

@@ -1,19 +1,13 @@
# vim: set filetype=yaml.ansible : # vim: set filetype=yaml.ansible :
--- ---
- name: append to syspkgs - name: Append to pkg_sys
ansible.builtin.set_fact:
syspkgs: "{{ syspkgs + [ 'xh' ] }}"
when: when:
- ansible_os_family == 'Darwin' - ansible_os_family == 'Darwin'
- name: linux specific install
block:
- ansible.builtin.include_tasks:
file: "pkgs/rust.yml"
when: pkgconfig_rust is undefined
- name: add to cargopkgs
ansible.builtin.set_fact: ansible.builtin.set_fact:
cargopkgs: "{{ cargopkgs + [ 'xh' ] }}" pkg_sys: "{{ pkg_sys + ['xh'] }}"
- name: Add to cargopkgs
when: when:
- ansible_os_family != 'Darwin' - ansible_os_family != 'Darwin'
ansible.builtin.set_fact:
pkg_cargo: "{{ pkg_cargo + [xh] }}"

View File

@@ -1,19 +0,0 @@
# vim: set filetype=yaml.ansible :
---
- ansible.builtin.include_vars:
file: nushell.yml
name: _nushell
- name: install nushell via cargo
become: true
ansible.builtin.command:
cmd:
- cargo
- install
- --root
- "{{ _nushell.install_prefix }}"
- "{{ nuitem }}"
- --locked
loop_control:
loop_var: nuitem
loop: "{{ _nushell.nu_pkgs_list }}"

View File

@@ -1,4 +1,5 @@
broot: broot:
version: 1.44.7
build_deps: build_deps:
Debian: Debian:
- build-essential - build-essential

2
vars/pkgs/choose.yml Normal file
View File

@@ -0,0 +1,2 @@
choose:
version: 1.3.6

View File

@@ -1,6 +1,8 @@
libreoffice: libreoffice:
method: flatpak
flatpak: flatpak:
- org.libreoffice.LibreOffice name: org.libreoffice.LibreOffice
remote: flathub
Debian: Debian:
- libreoffice - libreoffice
RedHat: RedHat:

View File

@@ -1,4 +1,5 @@
neovide: neovide:
version: 0.14.0
git_repo: https://github.com/neovide/neovide.git git_repo: https://github.com/neovide/neovide.git
build_deps: build_deps:
RedHat: RedHat:

View File

@@ -1,37 +0,0 @@
nushell:
build_deps:
Darwin:
- openssl
- cmake
Debian:
- pkg-config
- libssl-dev
- build-essential
RedHat:
- libxcb
- openssl-devel
- libX11-devel
nupkgs_extra: []
nupkgs_common:
- nu
- nu_plugin_compress
- nu_plugin_desktop_notifications
- nu_plugin_dns
- nu_plugin_file_dialog
- nu_plugin_formats
- nu_plugin_gstat
- nu_plugin_hashes
- nu_plugin_hcl
- nu_plugin_highlight
- nu_plugin_inc
- nu_plugin_json_path
- nu_plugin_net
- nu_plugin_polars
- nu_plugin_query
- nu_plugin_selector
pkgs:
Darwin:
- nu_plugin_plist
Debian: []
RedHat:
- nu_plugin_rpm

2
vars/pkgs/xh.yml Normal file
View File

@@ -0,0 +1,2 @@
xh:
version: 0.24.0