feat: devenv env to reproduce typst requirements

This commit is contained in:
2026-05-25 14:41:53 +02:00
parent 02d99a15a0
commit fbd9d7391f
6 changed files with 159 additions and 10192 deletions

View File

@ -1,3 +1,5 @@
[![Built with devenv](https://devenv.sh/assets/devenv-badge.svg)](https://devenv.sh)
# Thomas Horrut # Thomas Horrut
Monorepo for my personal pages (Website, resume, etc.) Monorepo for my personal pages (Website, resume, etc.)

13
resume/.gitignore vendored Normal file
View File

@ -0,0 +1,13 @@
# Devenv
.devenv*
devenv.local.nix
devenv.local.yaml
# direnv
.direnv
# pre-commit
.pre-commit-config.yaml
# output file
cv.pdf

File diff suppressed because it is too large Load Diff

65
resume/devenv.lock Normal file
View File

@ -0,0 +1,65 @@
{
"nodes": {
"devenv": {
"locked": {
"dir": "src/modules",
"lastModified": 1779636362,
"narHash": "sha256-Q/hy/ybvbe91fjA1MbulUwPjJH9yKaFZnSaTkwLE8S0=",
"owner": "cachix",
"repo": "devenv",
"rev": "9d6e68dac81fab1f7f2ec6784220151b4fba4b59",
"type": "github"
},
"original": {
"dir": "src/modules",
"owner": "cachix",
"repo": "devenv",
"type": "github"
}
},
"nixpkgs": {
"inputs": {
"nixpkgs-src": "nixpkgs-src"
},
"locked": {
"lastModified": 1778507786,
"narHash": "sha256-HzSQCKMsMr8r55LwM1JuzIOB+8bzk0FEv6sItKvsfoY=",
"owner": "cachix",
"repo": "devenv-nixpkgs",
"rev": "8f24a228a782e24576b155d1e39f0d914b380691",
"type": "github"
},
"original": {
"owner": "cachix",
"ref": "rolling",
"repo": "devenv-nixpkgs",
"type": "github"
}
},
"nixpkgs-src": {
"flake": false,
"locked": {
"lastModified": 1778274207,
"narHash": "sha256-I4puXmX1iovcCHZlRmztO3vW0mAbbRvq4F8wgIMQ1MM=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "b3da656039dc7a6240f27b2ef8cc6a3ef3bccae7",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixpkgs-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"root": {
"inputs": {
"devenv": "devenv",
"nixpkgs": "nixpkgs"
}
}
},
"root": "root",
"version": 7
}

61
resume/devenv.nix Normal file
View 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/
}

18
resume/devenv.yaml Normal file
View File

@ -0,0 +1,18 @@
# yaml-language-server: $schema=https://devenv.sh/devenv.schema.json
inputs:
nixpkgs:
url: github:cachix/devenv-nixpkgs/rolling
# If you're using non-OSS software, you can set allowUnfree to true.
# allowUnfree: true
# If you're not willing to allow unsupported packages:
# allowUnsupportedSystem: false
# If you're willing to use a package that's vulnerable
# permittedInsecurePackages:
# - "openssl-1.1.1w"
# If you have more than one devenv you can merge them
#imports:
# - ./backend