nix: Add last packages (dev ones)

This commit is contained in:
Geoffrey Frogeye 2023-10-24 21:44:40 +02:00
parent 73cbf01b63
commit e0b9bbcfba
Signed by: geoffrey
GPG key ID: C72403E7F82E6AD8
17 changed files with 68 additions and 130 deletions

View file

@ -6,8 +6,6 @@
- role: access - role: access
tags: access tags: access
when: root_access when: root_access
- role: software
tags: software
- role: system - role: system
tags: system tags: system
when: root_access when: root_access

View file

@ -1,34 +0,0 @@
- name: Generate list of packages for package manager
set_fact:
packages: "{{ query('template', 'package_manager.j2')[0].split('\n')[:-1]|sort|unique }}"
tags: softwarelist
- name: Install packages (Arch-based)
aur:
name: "{{ packages }}"
extra_args: "--asdeps --needed"
# Nothing is set as installed manually so it can
# be removed by dependency check.
# Current packages will be kept by the meta package
use: yay
notify: "software changed"
tags: softwarelist
when: arch_based
- name: Check if list of packages changed
copy:
content: "{% for package in packages %}{{ package }}\n{% endfor %}"
dest: "{{ ansible_user_dir }}/.cache/automatrop/package_manager"
notify: "software changed"
tags: softwarelist
# translate-shell
# $ curl -L git.io/trans > ~/.local/bin/trans
# $ chmod +x ~/.local/bin/trans
# sct
# $ TMP=$(mktemp /tmp/XXXXXXXXXX.c)
# $ wget https://gist.githubusercontent.com/ajnirp/208c03d3aa7f02c743d2/raw/55bf3eed25739173d8be57b5179ed5542cf40ed6/sct.c -O $TMP
# $ cc $TMP --std=c99 -lX11 -lXrandr -o $HOME/.local/bin/sct
# $ rm $TMP

View file

@ -1,14 +0,0 @@
{# Include rules-determined snippets #}
{# Inclde dev snippets #}
{% if dev_stuffs %}
{% include 'snippets/pm_dev_common.j2' %}
{% for dev_stuff in dev_stuffs %}
{% include 'snippets/pm_dev_' + dev_stuff + '.j2' %}
{% endfor %}
{% endif %}
{# Include custom snippets #}
{% for software_snippet in software_snippets %}
{% if software_snippet.startswith('pm_') %}
{% include 'snippets/' + software_snippet + '.j2' %}
{% endif %}
{% endfor %}

View file

@ -1,4 +0,0 @@
ansible
ansible-lint
ansible-language-server
{# EOF #}

View file

@ -1,10 +0,0 @@
{% if termux %}
{# Otherwise installed by base-devel or equivalent #}
make
gcc
{% endif %}
cmake
clang
ccache
gdb
{# EOF #}

View file

@ -1,18 +0,0 @@
perf
git
jq
{% if arch_based %}
ctags
{% elif debian_based %}
universal-ctags
{% endif %}
{% if not termux %}
highlight
{% endif %}
{# For nvim's :Telescope live_grep #}
ripgrep
{# Offline documentation #}
{# Relies on qt5-webkit which is a pain to compile
zeal
#}
{# EOF #}

View file

@ -1,3 +0,0 @@
docker
docker-compose
{# EOF #}

View file

@ -1,6 +0,0 @@
yosys
iverilog
ghdl
{% if display_server %}
gtkwave
{% endif %}

View file

@ -1,14 +0,0 @@
wget
curl
socat
{% if arch_based %}
bind
{% else %}
dnsutils
{% endif %}
whois
nmap
tcpdump
{% if display_server %}
wireshark-qt
{% endif %}

View file

@ -1,5 +0,0 @@
{% if arch_based %}
{# TODO Disabled because it currently doesn't build
perl-perl-languageserver
#}
{% endif %}

View file

@ -1,12 +0,0 @@
mypy
{% if not arch_based %}
black
{# On arch it's installed as a dependency, also it's called python-black #}
{% endif %}
{% if arch_based %}
python-lsp-server
python-mypy-ls
python-lsp-black
{% endif %}
ipython
{# EOF #}

View file

@ -1,2 +0,0 @@
bash-language-server
{# EOF #}

View file

@ -1 +0,0 @@
sql-language-server

View file

@ -5,6 +5,7 @@
./modules/desktop.nix ./modules/desktop.nix
./modules/battery.nix ./modules/battery.nix
./modules/wireless.nix ./modules/wireless.nix
# ./modules/extra.nix ./modules/extra.nix
./modules/dev.nix
]; ];
} }

View file

@ -0,0 +1,66 @@
{ pkgs, ... }:
{
# TODO Separate in diffrent packages once the structure is finalized...
# or connvert into per-directory requirements
users.users.geoffrey. packages = with pkgs; [
# Ansible
ansible
ansible-lint
ansible-language-server
# C/C++
cmake
clang
ccache
gdb
# Common
perf-tools
git
jq
universal-ctags
highlight
ripgrep # For nvim's :Telescope live_grep
zeal-qt6 # Offline documentation
# Docker
docker
docker-compose
# FPGA
yosys
verilog
ghdl
gtkwave # TODO Display server only
# Network
socat
dig
whois
nmap
tcpdump
wireshark-qt # TODO Display server only
# nix
nix
rnix-lsp
# Perl
perl536Packages.PLS
# Python
mypy
python3Packages.black
python3Packages.python-lsp-server
python3Packages.pylsp-mypy
python3Packages.pyls-isort
python3Packages.python-lsp-black
# TODO Are all those for the same language server?
python3Packages.ipython
# Bash
nodePackages.bash-language-server
sqls
];
}