nixos/home/prog/default.nix

40 lines
946 B
Nix
Raw Normal View History

{pkgs, ...}: {
xdg.configFile = {
"ruff/pyproject.toml".source = ./ruff.toml;
"pypoetry/config.toml".source = ./pypoetry.toml;
"ipython/profile_default/ipython_config.json".source = ./ipython_config.json;
"jupyter/jupyter_server_config.py".source = ./jupyter_server_config.py;
"jupyter/jupyter_nbconvert_config.py".source = ./jupyter_nbconvert_config.py;
};
home.packages = with pkgs; [
# Nix
nil
alejandra
# Shell
shfmt
shellcheck
nodePackages.prettier
2024-03-18 21:09:37 +00:00
# Lua
(luajit.withPackages
(ps: [(ps.callPackage ./luarocks/scilua.nix {})]))
luarocks-nix
2024-03-18 21:09:37 +00:00
lua-language-server
stylua
# Python
(python3.withPackages
(ps:
with ps;
[python-lsp-server mypy isort]
++ (ps.callPackage ./jupyter/default.nix {})))
ruff
# JavaScript / TypeScript
nodejs
nodePackages.typescript-language-server
nodePackages.eslint
];
}