- Package hostinger-cli (v4.1.4) via custom stdenv derivation - Add flarectl and hostinger-cli to cloud management tools - Add doggo modern DNS client to network utilities
195 lines
5.0 KiB
Nix
195 lines
5.0 KiB
Nix
# 🛠️ Developer Environment, Toolchains & Neovim
|
|
# Compilers, SDKs, language servers, API testing tools, and modular Neovim configuration.
|
|
|
|
{ inputs, pkgs, ... }:
|
|
|
|
let
|
|
symposium = pkgs.stdenv.mkDerivation rec {
|
|
pname = "symposium";
|
|
version = "0.5.1";
|
|
|
|
src = pkgs.fetchurl {
|
|
url = "https://github.com/symposium-dev/symposium/releases/download/symposium-v${version}/cargo-agents-x86_64-unknown-linux-musl.tar.gz";
|
|
hash = "sha256-/YhTLS/Rmp4tx6xhL/awYDAiebH9+4dssfL0lRmtzHk=";
|
|
};
|
|
|
|
sourceRoot = ".";
|
|
|
|
installPhase = ''
|
|
install -Dm755 cargo-agents $out/bin/cargo-agents
|
|
ln -s $out/bin/cargo-agents $out/bin/symposium
|
|
'';
|
|
|
|
meta = with pkgs.lib; {
|
|
description = "Collaborative AI toolset for Rust projects (cargo-agents)";
|
|
homepage = "https://symposium.dev";
|
|
license = with licenses; [ mit asl20 ];
|
|
platforms = [ "x86_64-linux" ];
|
|
mainProgram = "cargo-agents";
|
|
};
|
|
};
|
|
|
|
hostinger-cli = pkgs.stdenv.mkDerivation rec {
|
|
pname = "hostinger-cli";
|
|
version = "4.1.4";
|
|
|
|
src = pkgs.fetchurl {
|
|
url = "https://github.com/hostinger/api-cli/releases/download/v${version}/hostinger-${version}-linux-amd64.tar.gz";
|
|
hash = "sha256-DGliGk9wuSnf2HbCkQDcEbSv1TWmV9W4Jw7LWqCcj4E=";
|
|
};
|
|
|
|
sourceRoot = ".";
|
|
|
|
installPhase = ''
|
|
install -Dm755 hostinger $out/bin/hostinger
|
|
install -Dm644 completions/hostinger.bash $out/share/bash-completion/completions/hostinger
|
|
'';
|
|
|
|
meta = with pkgs.lib; {
|
|
description = "Official Hostinger API Command Line Interface";
|
|
homepage = "https://github.com/hostinger/api-cli";
|
|
license = licenses.mit;
|
|
platforms = [ "x86_64-linux" ];
|
|
mainProgram = "hostinger";
|
|
};
|
|
};
|
|
in
|
|
{
|
|
# Neovim CLI & IDE Editor Configuration
|
|
programs.neovim = {
|
|
enable = true;
|
|
defaultEditor = true; # Make neovim the default $EDITOR
|
|
viAlias = true; # Symlink vi -> nvim
|
|
vimAlias = true; # Symlink vim -> nvim
|
|
|
|
# Core Editor Settings (Lua-based)
|
|
initLua = builtins.readFile ./config/nvim/init.lua;
|
|
|
|
# Declarative Plugin Management
|
|
plugins = with pkgs.vimPlugins; [
|
|
{
|
|
plugin = catppuccin-nvim;
|
|
type = "lua";
|
|
config = builtins.readFile ./config/nvim/catppuccin.lua;
|
|
}
|
|
(nvim-treesitter.withPlugins (p: with p; [
|
|
python
|
|
rust
|
|
nix
|
|
lua
|
|
java
|
|
javascript
|
|
typescript
|
|
markdown
|
|
kdl
|
|
toml
|
|
bash
|
|
]))
|
|
{
|
|
plugin = nvim-lspconfig;
|
|
type = "lua";
|
|
}
|
|
{
|
|
plugin = nvim-dap;
|
|
}
|
|
{
|
|
plugin = nvim-dap-ui;
|
|
}
|
|
];
|
|
};
|
|
|
|
# Declarative configuration files for Neovim (lsp.lua & dap.lua loaded dynamically via init.lua)
|
|
home.file.".config/nvim/lsp.lua".source = ./config/nvim/lsp.lua;
|
|
home.file.".config/nvim/dap.lua".source = ./config/nvim/dap.lua;
|
|
|
|
# Developer packages & Toolchains
|
|
home.packages = with pkgs; [
|
|
# AI Assistant Companion & Agent Orchestration
|
|
inputs.antigravity.packages.${pkgs.stdenv.hostPlatform.system}.google-antigravity-cli
|
|
herdr
|
|
graphify
|
|
codex
|
|
pi-coding-agent
|
|
symposium
|
|
|
|
# Rust Toolchain & Language Server
|
|
cargo
|
|
rustc
|
|
rustfmt
|
|
clippy
|
|
rust-analyzer
|
|
gcc
|
|
|
|
# Python Package Runner & Toolchain (LSPs/linters managed per-project)
|
|
(python3.withPackages (ps: [
|
|
ps.pyyaml
|
|
]))
|
|
uv
|
|
|
|
# Node.js, Web & Formatter Tooling
|
|
nodejs
|
|
prettier
|
|
|
|
# Language Servers, Linters & Diagnostics (Zed, Neovim, General)
|
|
nil
|
|
nixd
|
|
jdt-language-server
|
|
typescript-language-server
|
|
lua-language-server
|
|
luaPackages.luacheck
|
|
taplo
|
|
marksman
|
|
shellcheck
|
|
vscode-langservers-extracted
|
|
lemminx
|
|
|
|
# Cloud CLI, Git Forge & Database Management
|
|
tea # Gitea official CLI client
|
|
google-cloud-sdk # GCP administration utilities
|
|
flarectl # Cloudflare official CLI client
|
|
hostinger-cli # Hostinger official API CLI
|
|
turso-cli # Turso libSQL management CLI
|
|
postgresql # PostgreSQL client utilities (psql, pg_dump)
|
|
pgcli # Postgres client with auto-completion
|
|
|
|
# API Testing & Networking
|
|
httpie # User-friendly HTTP/REST client
|
|
bruno # Fast, git-friendly GUI API client
|
|
websocat # WebSocket client
|
|
grpcurl # gRPC command-line tool
|
|
bind.dnsutils # DNS lookup tools (dig, nslookup)
|
|
doggo # Modern, human-friendly DNS client with DoH/DoT
|
|
openssh # SSH client tools
|
|
sshfs # FUSE-based SSH filesystem mount
|
|
nmap # Network scanner
|
|
arp-scan # ARP packet scanner
|
|
|
|
# File & Archive Utilities
|
|
wget
|
|
zip
|
|
unzip
|
|
unrar
|
|
rsync
|
|
aria2
|
|
|
|
# CLI Productivity & Text Processing
|
|
ripgrep
|
|
fd
|
|
glow
|
|
jq
|
|
tree
|
|
sqlite
|
|
bc
|
|
qpdf
|
|
tty-clock
|
|
curl
|
|
parallel
|
|
tuxedo
|
|
|
|
# Secrets Management
|
|
rbw # Bitwarden CLI client
|
|
sops # Mozilla SOPS CLI
|
|
age # File encryption tool
|
|
];
|
|
}
|