refactor(python): isolate language tooling to devshells and remove obsolete aliases
- Remove pyright, ruff, and mypy from global home.packages in home/dev.nix
- Keep uv globally as the universal runner and environment bootstrapper
- Remove obsolete p5 and p5w aliases from home/shell.nix
- Expose devShells.${system}.default in flake.nix with repository linters
- Update adding-software.md and neovim.md to reflect devshell resolution
This commit is contained in:
1 parent
1b228bb467
commit
7f69390afd
5 files changed
+18
-10
No files matched your search
@@ -32,7 +32,7 @@ Is it a compiler, LSP, language runtime, or dev tool?
|
||||
| **`system/hardware.nix`** | Hardware daemons & root services | PipeWire, Docker, Bluetooth (`bluez`), Power management (`tlp`), CUPS printing |
|
||||
| **`system/desktop.nix`** | Display server & greeter | Niri compositor enablement, DMS greeter, greetd, system typography/fonts |
|
||||
| **`home/desktop.nix`** | User graphical applications | Zen Browser, Zed, Obsidian, LibreOffice, GIMP, MPV, grim/slurp, DankSearch |
|
||||
| **`home/dev.nix`** | Toolchains & development | Rust, Python, Node, Go, language servers (pyright, rust-analyzer), Antigravity, sops/age CLI |
|
||||
| **`home/dev.nix`** | Toolchains & development | Rust, uv, Node, Go, language servers (nil, rust-analyzer), Antigravity, sops/age CLI |
|
||||
| **`home/shell.nix`** | Interactive shell & CLI tools | Bash, Tmux, Git, Starship, Delta, Fastfetch, ripgrep, fzf, bat, jq, eza |
|
||||
|
||||
---
|
||||
|
||||
@@ -24,11 +24,14 @@ The following language servers are installed globally via `home/dev.nix` and att
|
||||
| :--- | :--- | :--- |
|
||||
| **Nix** | `nil` | `nixfmt-rfc-style` |
|
||||
| **Rust** | `rust-analyzer` | `rustfmt` |
|
||||
| **Python** | `pyright` | `ruff` |
|
||||
| **Python** | `pyright` *(devshell / venv)* | `ruff` *(devshell / venv)* |
|
||||
| **JavaScript / TypeScript** | `typescript-language-server` | `prettier` |
|
||||
| **Go** | `gopls` | `gofmt` |
|
||||
| **Markdown / Documentation** | `marksman` | `prettier` |
|
||||
|
||||
> [!NOTE]
|
||||
> Python language tooling (`pyright`, `ruff`) is resolved dynamically via `direnv` from individual project devshells or virtualenvs rather than global system packages.
|
||||
|
||||
---
|
||||
|
||||
## 3. Essential Keybindings
|
||||
|
||||
@@ -122,6 +122,18 @@
|
||||
'';
|
||||
};
|
||||
|
||||
# Declarative dev shell for editing the configuration repository
|
||||
devShells.${system} = {
|
||||
default = pkgs.mkShell {
|
||||
packages = with pkgs; [
|
||||
shellcheck
|
||||
luaPackages.luacheck
|
||||
ruff
|
||||
pyright
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
nixosConfigurations = {
|
||||
# 💻 LAPTOP HOST (Mobile Workstation)
|
||||
laptop = nixpkgs.lib.nixosSystem {
|
||||
|
||||
+1
-4
@@ -68,14 +68,11 @@
|
||||
rust-analyzer
|
||||
gcc
|
||||
|
||||
# Python Toolchain & Language Server
|
||||
# Python Package Runner & Toolchain (LSPs/linters managed per-project)
|
||||
(python3.withPackages (ps: [
|
||||
ps.pyyaml
|
||||
]))
|
||||
uv
|
||||
ruff
|
||||
mypy
|
||||
pyright
|
||||
|
||||
# Node.js, Web & Formatter Tooling
|
||||
nodejs
|
||||
|
||||
@@ -232,10 +232,6 @@ in
|
||||
# Network Diagnostics
|
||||
pgoog = "ping google.com -c 3";
|
||||
|
||||
# Python / Py5
|
||||
p5 = "uv run py5-run-sketch";
|
||||
p5w = "uv run watchfiles \"py5-run-sketch main.py\"";
|
||||
|
||||
# Editor Shorthand
|
||||
v = "nvim";
|
||||
clock = "tty-clock";
|
||||
|
||||
Reference in new issue
Block a user