Compare commits
2 Commits
279f4da1f3
...
f1a8dd4f53
| Author | SHA1 | Date | |
|---|---|---|---|
| f1a8dd4f53 | |||
| 2770fd03eb |
17
build.sh
17
build.sh
@@ -13,4 +13,19 @@ mkdir $out
|
|||||||
cp resume.html $out
|
cp resume.html $out
|
||||||
mkdir $out/css && cp ./css/style.css $out/css
|
mkdir $out/css && cp ./css/style.css $out/css
|
||||||
|
|
||||||
chromium --disable-gpu --headless --print-to-pdf="$out/Resume-Danila-Fedorin.pdf" file://$(pwd)/resume.html
|
# ChatGPT-provided solution to Chrome having trouble
|
||||||
|
# setting up the network service due to a lack
|
||||||
|
# of readable files.
|
||||||
|
tmp="$(mktemp -d)"
|
||||||
|
mkdir -p "$tmp"/{config,cache,profile}
|
||||||
|
|
||||||
|
HOME="$tmp" \
|
||||||
|
XDG_CONFIG_HOME="$tmp/config" \
|
||||||
|
XDG_CACHE_HOME="$tmp/cache" \
|
||||||
|
chromium \
|
||||||
|
--headless \
|
||||||
|
--disable-gpu \
|
||||||
|
--user-data-dir="$tmp/profile" \
|
||||||
|
--disable-dev-shm-usage \
|
||||||
|
--print-to-pdf="$out/Resume-Danila-Fedorin.pdf" \
|
||||||
|
"file://$(pwd)/resume.html"
|
||||||
|
|||||||
8
flake.lock
generated
8
flake.lock
generated
@@ -20,16 +20,16 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1688392541,
|
"lastModified": 1766736597,
|
||||||
"narHash": "sha256-lHrKvEkCPTUO+7tPfjIcb7Trk6k31rz18vkyqmkeJfY=",
|
"narHash": "sha256-BASnpCLodmgiVn0M1MU2Pqyoz0aHwar/0qLkp7CjvSQ=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "ea4c80b39be4c09702b0cb3b42eab59e2ba4f24b",
|
"rev": "f560ccec6b1116b22e6ed15f4c510997d99d5852",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"ref": "nixos-22.11",
|
"ref": "nixos-25.11",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user