phantom-ship/forgejo: switch to catppuccin-mauve-auto (light in light mode)
The catppuccin nix module only generates the static flavor+accent combinations and sets DEFAULT_THEME to e.g. catppuccin-mocha-mauve. The auto-switching CSS files (catppuccin-<accent>-auto) ship in the gitea-theme assets but aren't wired into THEMES. Override DEFAULT_THEME to catppuccin-mauve-auto so the browser's prefers-color-scheme decides — latte (light) in light mode, mocha (dark) in dark mode. Append all auto variants + the four mauve flavor variants to THEMES so users can still pick from the appearance settings.
This commit is contained in:
parent
2e9441f367
commit
cbf0defa34
1 changed files with 26 additions and 1 deletions
|
|
@ -583,12 +583,37 @@ in
|
|||
|
||||
# Catppuccin theme for Forgejo — module wired in via clan.nix's
|
||||
# phantom-ship.imports (inputs.catppuccin.nixosModules.catppuccin).
|
||||
# The module's `flavor` option picks ONE static flavor; the auto
|
||||
# variants (catppuccin-<accent>-auto) follow prefers-color-scheme —
|
||||
# latte in light mode, mocha in dark. We override DEFAULT_THEME +
|
||||
# THEMES below to use the auto variant.
|
||||
catppuccin.forgejo = {
|
||||
enable = true;
|
||||
flavor = "mocha";
|
||||
flavor = "mocha"; # static fallback; auto-variant takes precedence below
|
||||
accent = "mauve";
|
||||
};
|
||||
|
||||
# Default to the auto-switching mauve theme (light in light mode, dark
|
||||
# in dark mode). Replace THEMES with builtins + every catppuccin auto
|
||||
# variant + the four mauve flavor variants, so the user-level
|
||||
# appearance picker can still offer them.
|
||||
services.forgejo.settings.ui = {
|
||||
DEFAULT_THEME = lib.mkForce "catppuccin-mauve-auto";
|
||||
THEMES = lib.mkForce (lib.concatStringsSep "," [
|
||||
# Forgejo builtins
|
||||
"forgejo-auto" "forgejo-light" "forgejo-dark"
|
||||
# Auto-switching catppuccin (light in light mode, dark in dark mode)
|
||||
"catppuccin-blue-auto" "catppuccin-flamingo-auto" "catppuccin-green-auto"
|
||||
"catppuccin-lavender-auto" "catppuccin-maroon-auto" "catppuccin-mauve-auto"
|
||||
"catppuccin-peach-auto" "catppuccin-pink-auto" "catppuccin-red-auto"
|
||||
"catppuccin-rosewater-auto" "catppuccin-sapphire-auto" "catppuccin-sky-auto"
|
||||
"catppuccin-teal-auto" "catppuccin-yellow-auto"
|
||||
# Static mauve variants for manual override
|
||||
"catppuccin-latte-mauve" "catppuccin-frappe-mauve"
|
||||
"catppuccin-macchiato-mauve" "catppuccin-mocha-mauve"
|
||||
]);
|
||||
};
|
||||
|
||||
# Auto-rebuild service/timer + safe.directory provided by the
|
||||
# shared dotfiles-rebuild NixOS module (see nixos/modules/dotfiles-rebuild.nix).
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue