mirror of
https://github.com/Noratrieb/nixos.git
synced 2026-05-13 05:32:51 +02:00
to fix typst 0.14 breakage
```
Oct 27 18:58:15 nixos regenerate-bsod-lockscreen[14912]: Regenerating the lock screen...
Oct 27 18:58:15 nixos regenerate-bsod-lockscreen[14917]: error: cannot access fields on type string
Oct 27 18:58:15 nixos regenerate-bsod-lockscreen[14917]: ┌─ @preview/jogs:0.2.0/lib.typ:24:31
Oct 27 18:58:15 nixos regenerate-bsod-lockscreen[14917]: │
Oct 27 18:58:15 nixos regenerate-bsod-lockscreen[14917]: 24 │ jogs-wasm.compile(bytes(code.text))
Oct 27 18:58:15 nixos regenerate-bsod-lockscreen[14917]: │ ^^^^
Oct 27 18:58:15 nixos regenerate-bsod-lockscreen[14917]: help: error occurred in this call of function `compile-js`
Oct 27 18:58:15 nixos regenerate-bsod-lockscreen[14917]: ┌─ @preview/cades:0.3.0/lib.typ:4:23
Oct 27 18:58:15 nixos regenerate-bsod-lockscreen[14917]: │
Oct 27 18:58:15 nixos regenerate-bsod-lockscreen[14917]: 4 │ #let qrcode-bytecode = compile-js(qrcode-src)
Oct 27 18:58:15 nixos regenerate-bsod-lockscreen[14917]: │ ^^^^^^^^^^^^^^^^^^^^^^
Oct 27 18:58:15 nixos regenerate-bsod-lockscreen[14917]: help: error occurred while importing this module
Oct 27 18:58:15 nixos regenerate-bsod-lockscreen[14917]: ┌─ ../../nix/store/0mi8dw0404kn734mbfgk04wi7cmw5dg4-bsod.typ:1:8
Oct 27 18:58:15 nixos regenerate-bsod-lockscreen[14917]: │
Oct 27 18:58:15 nixos regenerate-bsod-lockscreen[14917]: 1 │ #import "@preview/cades:0.3.0": qr-code
Oct 27 18:58:15 nixos regenerate-bsod-lockscreen[14917]: │ ^^^^^^^^^^^^^^^^^^^^^^
```
26c16bd093
46 lines
1.3 KiB
Typst
46 lines
1.3 KiB
Typst
#import "@preview/cades:0.3.1": qr-code
|
|
|
|
#let background-color = rgb(0x00, 0x78, 0xd7)
|
|
#let url = "https://noratrieb.dev"
|
|
#let percent = sys.inputs.at("percent", default: "20");
|
|
#let stopcode = sys.inputs.at("stopcode", default: "KASAN_ENLIGHTENMENT_VIOLATION")
|
|
|
|
#set page(
|
|
flipped: true,
|
|
margin: (
|
|
top: 184pt,
|
|
right: 0pt,
|
|
left: 190pt,
|
|
bottom: 0pt,
|
|
),
|
|
width: 1080pt,
|
|
height: 1920pt,
|
|
fill: background-color,
|
|
)
|
|
|
|
#set text(font: "Segoe UI")
|
|
|
|
#set text(rgb(255, 255, 255))
|
|
|
|
// :(
|
|
#text(size: 210pt, [:(])
|
|
|
|
#place(dx: 17pt, dy: 77pt, text(size: 42pt, [Your PC ran into a problem and needs to restart. We\'re]))
|
|
#place(dx: 21pt, dy: 136pt, text(size: 42pt, [just collecting some error info, and then we\'ll restart for]))
|
|
#place(dx: 19pt, dy: 195pt, text(size: 42pt, [you.]))
|
|
|
|
#place(dx: 18pt, dy: 284pt, text(size: 42pt, [#percent% complete]))
|
|
|
|
#place(dx: 152pt, dy: 371pt, text(
|
|
size: 20pt,
|
|
[For more information about this issue and possible fixes, visit https://www.windows.com/stopcode],
|
|
))
|
|
|
|
#place(dx: 17pt, dy: 371pt, [
|
|
#rect(width: 115pt, height: 115pt, inset: 9pt, fill: white, qr-code(url, color: background-color))
|
|
])
|
|
|
|
|
|
#place(dx: 151pt, dy: 438pt, text(size: 16pt, [If you call a support person, give them this info:]))
|
|
|
|
#place(dx: 151pt, dy: 472pt, text(size: 16pt, [Stop code: #stopcode]))
|