feat: devenv env to reproduce typst requirements
This commit is contained in:
61
resume/devenv.nix
Normal file
61
resume/devenv.nix
Normal file
@ -0,0 +1,61 @@
|
||||
{
|
||||
pkgs,
|
||||
lib,
|
||||
config,
|
||||
inputs,
|
||||
...
|
||||
}:
|
||||
|
||||
{
|
||||
# https://devenv.sh/basics/
|
||||
env.GREET = "devenv";
|
||||
|
||||
# https://devenv.sh/packages/
|
||||
packages = [
|
||||
pkgs.source-sans
|
||||
pkgs.font-awesome
|
||||
];
|
||||
|
||||
# https://devenv.sh/languages/
|
||||
languages.typst = {
|
||||
enable = true;
|
||||
fontPaths = [
|
||||
"${pkgs.source-sans}/share/fonts/opentype"
|
||||
"${pkgs.font-awesome}/share/fonts"
|
||||
];
|
||||
lsp.enable = false;
|
||||
};
|
||||
|
||||
# https://devenv.sh/processes/
|
||||
# processes.dev.exec = "${lib.getExe pkgs.watchexec} -n -- ls -la";
|
||||
|
||||
# https://devenv.sh/services/
|
||||
# services.postgres.enable = true;
|
||||
|
||||
# https://devenv.sh/scripts/
|
||||
scripts = {
|
||||
cv-watch.exec = ''
|
||||
typst watch cv.typ
|
||||
'';
|
||||
cv-build.exec = ''
|
||||
typst compile cv.typ
|
||||
'';
|
||||
};
|
||||
|
||||
# https://devenv.sh/basics/
|
||||
enterShell = "";
|
||||
|
||||
# https://devenv.sh/tasks/
|
||||
# tasks = {
|
||||
# "myproj:setup".exec = "mytool build";
|
||||
# "devenv:enterShell".after = [ "myproj:setup" ];
|
||||
# };
|
||||
|
||||
# https://devenv.sh/tests/
|
||||
enterTest = "";
|
||||
|
||||
# https://devenv.sh/git-hooks/
|
||||
# git-hooks.hooks.shellcheck.enable = true;
|
||||
|
||||
# See full reference at https://devenv.sh/reference/options/
|
||||
}
|
||||
Reference in New Issue
Block a user