Fixed Catppuccin Styling
This commit is contained in:
@@ -6,11 +6,11 @@
|
|||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
giteaTheme = pkgs.fetchFromGitHub {
|
|
||||||
owner = "catppuccin";
|
giteaTheme = pkgs.fetchzip {
|
||||||
repo = "gitea";
|
url = "https://github.com/catppuccin/gitea/releases/download/v1.0.1/catppuccin-gitea.tar.gz";
|
||||||
rev = "main";
|
sha256 = "sha256-et5luA3SI7iOcEIQ3CVIu0+eiLs8C/8mOitYlWQa/uI=";
|
||||||
sha256 = "sha256-ba5Bh/eTg2Dn80vyuudDpZVbKK1EDyv2rFUSwgMONq0=";
|
stripRoot = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
domain = "192.168.2.31"; # swap to git.cyperpunk.de for prod
|
domain = "192.168.2.31"; # swap to git.cyperpunk.de for prod
|
||||||
@@ -182,9 +182,9 @@ in
|
|||||||
|
|
||||||
# symlink catppuccin css files into gitea's custom dir on every service start
|
# symlink catppuccin css files into gitea's custom dir on every service start
|
||||||
systemd.services.gitea.preStart = lib.mkAfter ''
|
systemd.services.gitea.preStart = lib.mkAfter ''
|
||||||
themeDir="/var/lib/gitea/custom/public/assets/css"
|
themeDir="${config.services.gitea.stateDir}/custom/public/assets/css"
|
||||||
mkdir -p "$themeDir"
|
mkdir -p "$themeDir"
|
||||||
for f in ${giteaTheme}/theme/*.css; do
|
for f in ${giteaTheme}/*.css; do
|
||||||
name=$(basename "$f")
|
name=$(basename "$f")
|
||||||
ln -sf "$f" "$themeDir/$name"
|
ln -sf "$f" "$themeDir/$name"
|
||||||
done
|
done
|
||||||
|
|||||||
Reference in New Issue
Block a user