Move programming packages to separate file, with some additions

This commit is contained in:
Evie Litherland-Smith 2024-02-09 08:42:38 +00:00
parent fe479544e4
commit 1da9a8da19
2 changed files with 34 additions and 21 deletions

View file

@ -3,7 +3,7 @@
pkgs, 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.git.extraConfig.core.editor = "${config.programs.emacs.finalPackage}/bin/emacsclient -c";
programs.emacs = { programs.emacs = {
# Clone emacs config from https://git.xenia.me.uk/xenia/emacs.git # Clone emacs config from https://git.xenia.me.uk/xenia/emacs.git
@ -166,25 +166,5 @@
beamer 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
View 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
];
}