~aasg/haunted-blog

haunted-blog/flake.nix -rw-r--r-- 3.2 KiB
58094493 — Aluísio Augusto Silva Gonçalves 29 days ago
flake/production: Allow simple CORS requests

Just found out (while investigating something else through Electron's
devtools panel) that the `/.well-known/matrix` endpoint requires CORS
even in Element Desktop.  See github:vector-im/element-web#7760 and
similar issues in the Element repository.
713e1953 — Aluísio Augusto Silva Gonçalves 29 days ago
flake: Update inputs
1b76038e — Aluísio Augusto Silva Gonçalves a month ago
flake/production: Update Content-Security-Policy
3bd6c606 — Aluísio Augusto Silva Gonçalves a month ago
flake: Add SnowWeb headers to production build

Set up additional HTTP headers served from https://aasg.name.
06419c17 — Aluísio Augusto Silva Gonçalves a month ago
flake: Add a 'production' package

The production package will be what actually goes live on
https://aasg.name.  At the moment, the two differences from the default
package are the inclusion of Matrix-related well-known links (which only
make sense on the live domain) and the Brotli compression of HTML/CSS/JS
files.  No more changes should happen aside from more well-known links.
d704407c — Aluísio Augusto Silva Gonçalves 2 months ago
haunt: Link to source commit in the site footer
f2aa140b — Aluísio Augusto Silva Gonçalves 3 months ago
flake: Provide an empty install phase

If `dontInstall` is enabled, the install hooks are not run.  We'll be
needing those elsewhere so provide an install phase that just run the
hooks.
0bd03552 — Aluísio Augusto Silva Gonçalves 3 months ago
flake: Run build phase hooks

Despite [RFC 32] being accepted, it doesn't seem to have been
implemented yet, so we need to call the pre- and post-build hooks
manually.

[RFC 32]: https://github.com/NixOS/rfcs/blob/master/rfcs/0032-run-phase-changes-for-better-nix-shell-use.md
4ed72b22 — Aluísio Augusto Silva Gonçalves 5 months ago
flake: Make output deterministic

Patch timestamps to align with the timestamp of the latest commit, and
fix a namespace-like URL to not include a random UUID.

I considered using libfaketime but it made reuse hang, and with just two
timestamps it may have been too heavy-handed anyway.

self.rev is not available when the Git worktree is dirty, but that
should not be a problem for published builds.
14658e35 — Aluísio Augusto Silva Gonçalves 6 months ago
nix: Add guile-json to buildInputs

That GUILE_LOAD_PATH felt odd ever since I saw it again recently.
guile-json not being in a build input explains why we needed it.
09a89054 — Aluísio Augusto Silva Gonçalves 7 months ago
nix: Add flake