Setup catppuccin forgejo/gitea theme
This commit is contained in:
parent
e0c8f39121
commit
78cfa9d619
1 changed files with 17 additions and 2 deletions
|
@ -813,7 +813,13 @@ sudo nix run nixpkgs#ipmitool -- raw 0x30 0x30 0x02 0xff 0x00
|
||||||
# acmeCA = "https://acme-staging-v02.api.letsencrypt.org/directory";
|
# acmeCA = "https://acme-staging-v02.api.letsencrypt.org/directory";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
{
|
({...}: let
|
||||||
|
theme = pkgs.fetchzip {
|
||||||
|
url = "https://github.com/catppuccin/gitea/releases/download/v1.0.1/catppuccin-gitea.tar.gz";
|
||||||
|
sha256 = "sha256-HqVLW58lKPn81p3gTSjzkACHSBbmqPqeobAlJMubb8Y=";
|
||||||
|
stripRoot = false;
|
||||||
|
};
|
||||||
|
in {
|
||||||
# systemd.tmpfiles.settings = {
|
# systemd.tmpfiles.settings = {
|
||||||
# "10-forgejo" = {
|
# "10-forgejo" = {
|
||||||
# "/storage/forgejo" = {
|
# "/storage/forgejo" = {
|
||||||
|
@ -890,6 +896,15 @@ sudo nix run nixpkgs#ipmitool -- raw 0x30 0x30 0x02 0xff 0x00
|
||||||
"forgejo-runner.env" = {mode = "0400";};
|
"forgejo-runner.env" = {mode = "0400";};
|
||||||
};
|
};
|
||||||
systemd.services.gitea-runner-beefcake.after = ["sops-nix.service"];
|
systemd.services.gitea-runner-beefcake.after = ["sops-nix.service"];
|
||||||
|
|
||||||
|
systemd.services.forgejo = {
|
||||||
|
preStart = lib.mkAfter ''
|
||||||
|
rm -rf ${config.services.forgejo.stateDir}/custom/public
|
||||||
|
mkdir -p ${config.services.forgejo.stateDir}/custom/public
|
||||||
|
ln -sf ${theme} ${config.services.forgejo.stateDir}/custom/public/css
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
services.gitea-actions-runner = {
|
services.gitea-actions-runner = {
|
||||||
# TODO: simple git-based automation would be dope? maybe especially for
|
# TODO: simple git-based automation would be dope? maybe especially for
|
||||||
# mirroring to github super easy?
|
# mirroring to github super easy?
|
||||||
|
@ -938,7 +953,7 @@ sudo nix run nixpkgs#ipmitool -- raw 0x30 0x30 0x02 0xff 0x00
|
||||||
reverse_proxy :${toString config.services.forgejo.settings.server.HTTP_PORT}
|
reverse_proxy :${toString config.services.forgejo.settings.server.HTTP_PORT}
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
}
|
})
|
||||||
{
|
{
|
||||||
services.restic.commonPaths = [
|
services.restic.commonPaths = [
|
||||||
config.services.vaultwarden.backupDir
|
config.services.vaultwarden.backupDir
|
||||||
|
|
Loading…
Reference in a new issue