Move programming packages to separate file, with some additions
This commit is contained in:
parent
fe479544e4
commit
1da9a8da19
|
@ -3,7 +3,7 @@
|
|||
pkgs,
|
||||
...
|
||||
}: {
|
||||
imports = [../git/default.nix];
|
||||
imports = [../git/default.nix ../prog/default.nix];
|
||||
programs.git.extraConfig.core.editor = "${config.programs.emacs.finalPackage}/bin/emacsclient -c";
|
||||
programs.emacs = {
|
||||
# Clone emacs config from https://git.xenia.me.uk/xenia/emacs.git
|
||||
|
@ -166,25 +166,5 @@
|
|||
beamer
|
||||
;
|
||||
})
|
||||
|
||||
# Linters
|
||||
shellcheck
|
||||
|
||||
# Formatters
|
||||
nodePackages.prettier
|
||||
alejandra
|
||||
ruff
|
||||
isort
|
||||
fprettify
|
||||
rustfmt
|
||||
stylua
|
||||
shfmt
|
||||
|
||||
# LSP Servers
|
||||
nil
|
||||
fortls
|
||||
rust-analyzer
|
||||
luajitPackages.lua-lsp
|
||||
python3Packages.jedi-language-server
|
||||
];
|
||||
}
|
||||
|
|
33
home/prog/default.nix
Normal file
33
home/prog/default.nix
Normal file
|
@ -0,0 +1,33 @@
|
|||
{pkgs, ...}: {
|
||||
home.packages = with pkgs; [
|
||||
# Nix
|
||||
alejandra
|
||||
nil
|
||||
|
||||
# Python
|
||||
(python3.withPackages (ps:
|
||||
with ps; [
|
||||
python-lsp-server
|
||||
python-lsp-ruff
|
||||
pylsp-mypy
|
||||
numpy
|
||||
]))
|
||||
ruff
|
||||
isort
|
||||
|
||||
# Fortran
|
||||
gfortran
|
||||
fortls
|
||||
|
||||
# Rust toolchain
|
||||
cargo
|
||||
rustc
|
||||
rustfmt
|
||||
rust-analyzer
|
||||
|
||||
# Shell and misc
|
||||
shfmt
|
||||
shellcheck
|
||||
nodePackages.prettier
|
||||
];
|
||||
}
|
Loading…
Reference in a new issue