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:
parent
ce3ce183b4
commit
a344322f3d
|
@ -4,6 +4,8 @@
|
|||
../shell/default.nix
|
||||
../shell/git.nix
|
||||
../gpg/default.nix
|
||||
../texlive/default.nix
|
||||
../programming/default.nix
|
||||
];
|
||||
home.file.".emacs.d/early-init.el".text = ''
|
||||
(setopt use-package-check-before-init t
|
||||
|
@ -88,43 +90,5 @@
|
|||
ghostscript
|
||||
poppler_utils
|
||||
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;
|
||||
}
|
||||
|
|
23
system/home/programming/default.nix
Normal file
23
system/home/programming/default.nix
Normal 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
|
||||
];
|
||||
}
|
8
system/home/programming/lua/default.nix
Normal file
8
system/home/programming/lua/default.nix
Normal file
|
@ -0,0 +1,8 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
home.packages = with pkgs; [
|
||||
(luajit.withPackages (ps: [ (ps.callPackage ./luarocks/scilua.nix { }) ]))
|
||||
lua-language-server
|
||||
stylua
|
||||
];
|
||||
}
|
19
system/home/programming/python/default.nix
Normal file
19
system/home/programming/python/default.nix
Normal 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;
|
||||
}
|
20
system/home/texlive/default.nix
Normal file
20
system/home/texlive/default.nix
Normal 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 { }) ];
|
||||
})
|
||||
];
|
||||
}
|
Before Width: | Height: | Size: 244 KiB After Width: | Height: | Size: 244 KiB |
Before Width: | Height: | Size: 24 KiB After Width: | Height: | Size: 24 KiB |
Loading…
Reference in a new issue