Move python, lua, texlive into own directories, imported by Emacs

Python and lua live under programming, with programming/default.nix
importing both and including misc tools that don't fit anywhere else

Texlive move to own directory
This commit is contained in:
Evie Litherland-Smith 2024-12-04 16:57:56 +00:00
parent ce3ce183b4
commit a344322f3d
18 changed files with 72 additions and 38 deletions

View file

@ -4,6 +4,8 @@
../shell/default.nix ../shell/default.nix
../shell/git.nix ../shell/git.nix
../gpg/default.nix ../gpg/default.nix
../texlive/default.nix
../programming/default.nix
]; ];
home.file.".emacs.d/early-init.el".text = '' home.file.".emacs.d/early-init.el".text = ''
(setopt use-package-check-before-init t (setopt use-package-check-before-init t
@ -88,43 +90,5 @@
ghostscript ghostscript
poppler_utils poppler_utils
graphviz-nox graphviz-nox
# Customised LaTeX install
(texlive.combine {
inherit (texlive)
scheme-medium
dvisvgm
dvipng
wrapfig
amsmath
ulem
hyperref
capt-of
listings
bera
;
latex-beamer-ukaea.pkgs = [ (callPackage ./texlive/latex-beamer-ukaea/default.nix { }) ];
})
## Linters
shellcheck
yamllint
ruff
## Formatters
nixfmt-rfc-style
shfmt
stylua
nodePackages.prettier
nodePackages.prettier-plugin-toml
## Language servers
nixd
lua-language-server
rust-analyzer
python3Packages.python-lsp-server
nodePackages.typescript-language-server
]; ];
xdg.configFile."ruff/pyproject.toml".source = ./ruff.toml;
} }

View file

@ -0,0 +1,23 @@
{ pkgs, ... }:
{
imports = [
./python/default.nix
./lua/default.nix
];
home.packages = with pkgs; [
## Linters
shellcheck
yamllint
## Formatters
nixfmt-rfc-style
shfmt
nodePackages.prettier
nodePackages.prettier-plugin-toml
## Language servers
nixd
rust-analyzer
nodePackages.typescript-language-server
];
}

View file

@ -0,0 +1,8 @@
{ pkgs, ... }:
{
home.packages = with pkgs; [
(luajit.withPackages (ps: [ (ps.callPackage ./luarocks/scilua.nix { }) ]))
lua-language-server
stylua
];
}

View file

@ -0,0 +1,19 @@
{ pkgs, ... }:
# MPLBACKEND
{
home.packages = with pkgs; [
(python3.withPackages (
ps: with ps; [
python-lsp-server
pylsp-rope
rope
mypy
numpy
xarray
matplotlib
]
))
ruff
];
xdg.configFile."ruff/pyproject.toml".source = ./ruff.toml;
}

View file

@ -0,0 +1,20 @@
{ pkgs, ... }:
{
home.packages = with pkgs; [
(texlive.combine {
inherit (texlive)
scheme-medium
dvisvgm
dvipng
wrapfig
amsmath
ulem
hyperref
capt-of
listings
bera
;
latex-beamer-ukaea.pkgs = [ (callPackage ./latex-beamer-ukaea/default.nix { }) ];
})
];
}

View file

Before

Width:  |  Height:  |  Size: 244 KiB

After

Width:  |  Height:  |  Size: 244 KiB

View file

Before

Width:  |  Height:  |  Size: 24 KiB

After

Width:  |  Height:  |  Size: 24 KiB