This repository has been archived on 2026-09-17. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
nixos-config/hosts/pinix/localServices/branding/forgejo-header.tmpl
pijukka 33356818d1 Extend 0ff.space branding to Forgejo, GoToSocial route, and internal fileserver
- Forgejo: inject the shared background via custom/templates/custom/header.tmpl
  (Forgejo's documented <head> extension point) plus a data-theme-aware
  override, since Forgejo's own theme switcher persists forgejo-light/-dark
  independent of prefers-color-scheme. Switch all custom-file tmpfiles rules
  from C+ to L+: C+ only force-overwrites when the source is a directory,
  so a changed regular-file source silently stopped reaching disk after the
  first deploy.
- files (internal fileserver): reuse the static-web-server source patch
  already used for the external "data" fileserver.
- lldap: add an html.dark/html.light override, since its bundled
  bootstrap-dark-5 darkmode.js persists the user's theme choice independent
  of the OS preference our shared stylesheet otherwise reacts to.

GoToSocial's instance-wide custom CSS lives in its database (admin API/UI
"Instance Settings", not a Nix setting) -- no code change possible there.
2026-08-03 19:00:57 +02:00

1 line
68 B
Go Template

<link rel="stylesheet" href="/assets/css/0ff-space-background.css">