Archived
1
0

refactor: clean up and remove frappuccino theme

This commit is contained in:
Guz
2024-11-29 19:08:49 -03:00
parent 6c218a45cb
commit 7d45b824d5

View File

@@ -1,35 +1,11 @@
{
config,
inputs,
pkgs,
pkgs-unstable,
...
}:
with builtins; let
frappurccino-theme =
readFile
"${inputs.frappurccino-forgejo.packages.${pkgs.system}.default}/css/theme-frappurccino-mocha-sky.css";
cal-sans = pkgs.fetchzip {
url = "https://github.com/calcom/font/releases/download/v1.0.0/CalSans_Semibold_v1.0.0.zip";
stripRoot = false;
hash = "sha256-JqU64JUgWimJgrKX3XYcml8xsvy//K7O5clNKJRGaTM=";
};
fonts-css = pkgs.writeText "custom.css" ''
@font-face {
family: 'Cal Sans';
src:
url('assets/fonts/CalSans-SemiBold.woff2') format('woff2'),
url('assets/fonts/CalSans-SemiBold.woff') format('woff'),
url('assets/fonts/CalSans-SemiBold.ttf') format('truetype');
};
'';
in {
}: {
services.forgejo.customization = {
assets = ./assets;
templates = ./templates;
theme = {
"frappurccino" = frappurccino-theme;
"capytal-dark" = ./themes/theme-capytal-dark.css;
"bthree-dark" = ./themes/theme-bthree-dark.css;
};