2024-12-04 16:57:56 +00:00
|
|
|
{ pkgs, ... }:
|
|
|
|
{
|
2025-01-09 10:08:46 +00:00
|
|
|
home.packages =
|
|
|
|
let
|
|
|
|
pythonEnv = (
|
|
|
|
pkgs.python312.withPackages (
|
|
|
|
ps: with ps; [
|
|
|
|
flake8
|
|
|
|
isort
|
|
|
|
numpy
|
|
|
|
scipy
|
|
|
|
xarray
|
|
|
|
netcdf4
|
|
|
|
matplotlib
|
|
|
|
]
|
|
|
|
)
|
|
|
|
);
|
|
|
|
luaEnv = (pkgs.luajit.withPackages (ps: [ (ps.callPackage ./luarocks/scilua.nix { }) ]));
|
|
|
|
in
|
|
|
|
with pkgs;
|
|
|
|
[
|
|
|
|
## Language Environments
|
|
|
|
pythonEnv
|
|
|
|
luaEnv
|
2024-12-04 16:57:56 +00:00
|
|
|
|
2025-01-09 10:08:46 +00:00
|
|
|
## Linters
|
|
|
|
shellcheck
|
2025-01-10 09:15:47 +00:00
|
|
|
ruff
|
2024-12-04 16:57:56 +00:00
|
|
|
|
2025-01-09 10:08:46 +00:00
|
|
|
## Formatters
|
|
|
|
nixfmt-rfc-style
|
|
|
|
shfmt
|
|
|
|
stylua
|
|
|
|
nodePackages.prettier
|
|
|
|
|
|
|
|
## Language servers
|
|
|
|
nixd
|
|
|
|
pyright
|
|
|
|
lua-language-server
|
|
|
|
rust-analyzer
|
|
|
|
];
|
|
|
|
xdg.configFile."ruff/pyproject.toml".source = ./ruff.toml;
|
2024-12-04 16:57:56 +00:00
|
|
|
}
|