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/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 |
|
| **`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/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 |
|
| **`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` |
|
| **Nix** | `nil` | `nixfmt-rfc-style` |
|
||||||
| **Rust** | `rust-analyzer` | `rustfmt` |
|
| **Rust** | `rust-analyzer` | `rustfmt` |
|
||||||
| **Python** | `pyright` | `ruff` |
|
| **Python** | `pyright` *(devshell / venv)* | `ruff` *(devshell / venv)* |
|
||||||
| **JavaScript / TypeScript** | `typescript-language-server` | `prettier` |
|
| **JavaScript / TypeScript** | `typescript-language-server` | `prettier` |
|
||||||
| **Go** | `gopls` | `gofmt` |
|
| **Go** | `gopls` | `gofmt` |
|
||||||
| **Markdown / Documentation** | `marksman` | `prettier` |
|
| **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
|
## 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 = {
|
nixosConfigurations = {
|
||||||
# 💻 LAPTOP HOST (Mobile Workstation)
|
# 💻 LAPTOP HOST (Mobile Workstation)
|
||||||
laptop = nixpkgs.lib.nixosSystem {
|
laptop = nixpkgs.lib.nixosSystem {
|
||||||
|
|||||||
+1
-4
@@ -68,14 +68,11 @@
|
|||||||
rust-analyzer
|
rust-analyzer
|
||||||
gcc
|
gcc
|
||||||
|
|
||||||
# Python Toolchain & Language Server
|
# Python Package Runner & Toolchain (LSPs/linters managed per-project)
|
||||||
(python3.withPackages (ps: [
|
(python3.withPackages (ps: [
|
||||||
ps.pyyaml
|
ps.pyyaml
|
||||||
]))
|
]))
|
||||||
uv
|
uv
|
||||||
ruff
|
|
||||||
mypy
|
|
||||||
pyright
|
|
||||||
|
|
||||||
# Node.js, Web & Formatter Tooling
|
# Node.js, Web & Formatter Tooling
|
||||||
nodejs
|
nodejs
|
||||||
|
|||||||
@@ -232,10 +232,6 @@ in
|
|||||||
# Network Diagnostics
|
# Network Diagnostics
|
||||||
pgoog = "ping google.com -c 3";
|
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
|
# Editor Shorthand
|
||||||
v = "nvim";
|
v = "nvim";
|
||||||
clock = "tty-clock";
|
clock = "tty-clock";
|
||||||
|
|||||||
Reference in new issue
Block a user