1

refactor: separate language specific packages into modules

This commit is contained in:
Himadri Bhattacharjee
2024-03-13 10:26:58 +05:30
parent e1bfe03a5e
commit eeb93fb5cb
4 changed files with 40 additions and 30 deletions

View File

@@ -133,44 +133,29 @@
extraGroups = [ "networkmanager" "wheel" "uinput" ];
packages = with pkgs;
let
pythonPackages = python311.withPackages (ps: with ps; [
jupyter
python-lsp-server
python-lsp-ruff
pandas
requests
xlrd
xlwt
]);
pythonWithPackages = import ./python.nix pkgs;
rustPackages = import ./rust.nix pkgs;
ctfPackages = import ./ctf.nix pkgs;
in
rustPackages ++ ctfPackages ++
[
bettercap
blackbox-terminal
broot
cargo
cargo-deny
celluloid
clippy
dxvk
evcxr
fd
feroxbuster
ffmpeg-full
ffuf
file
fractal
gau
gh
ghidra
gimp
gitleaks
glow
gnome.gnome-boxes
gnome-secrets
go
gopls
hashcat
hcxtools
hyperfine
i2p
jellyfin-media-player
@@ -186,25 +171,16 @@
lutris
mariadb
marksman
nikto
nil
nitch
nmap
ollama
openvpn
patchelf
pkg-config
pwntools
pythonPackages
pythonWithPackages
qemu
qrencode
rnote
rust-analyzer
rustc
rustfmt
rustscan
signal-desktop
sqlmap
tor-browser-bundle-bin
ungoogled-chromium
unrar
@@ -264,7 +240,6 @@
adw-gtk3
aircrack-ng
bat
eza
git
gnupg
helix

17
hosts/default/ctf.nix Normal file
View File

@@ -0,0 +1,17 @@
# Tools for pentesting and playing CTFs
{ pkgs, ... }: with pkgs; [
bettercap
ffuf
gau
ghidra
gitleaks
hashcat
hcxtools
nikto
nmap
patchelf
pwntools
rustscan
sqlmap
s3scanner
]

10
hosts/default/python.nix Normal file
View File

@@ -0,0 +1,10 @@
{ pkgs, ... }:
pkgs.python311.withPackages (ps: with ps; [
jupyter
python-lsp-server
python-lsp-ruff
pandas
requests
xlrd
xlwt
])

8
hosts/default/rust.nix Normal file
View File

@@ -0,0 +1,8 @@
{ pkgs, ... }: with pkgs; [
cargo
cargo-deny
clippy
rust-analyzer
rustc
rustfmt
]