feat(nix): user flake instead regular shell.nix

This commit is contained in:
Yorick Barbanneau 2025-01-28 23:03:53 +01:00
parent b5179b97ac
commit 558fc24911
6 changed files with 248 additions and 26 deletions

28
nix/devshells.nix Normal file
View file

@ -0,0 +1,28 @@
_: {
config.perSystem =
{
config,
inputs',
pkgs,
...
}:
{
devShells = {
default = pkgs.mkShell {
name = "hugo-shell";
nativeBuildInputs = config.develPackages
++ config.hugoBuildPackages
;
shellook = ''
mkdir -p themes
ln -snf "${config.themePackage}/" "themes/mainroad"
'';
};
latex = pkgs.mkShell {
name = "latex-shell";
nativeBuildInputs = config.develPackages
++ config.latexBuildPackages;
};
};
};
}