bekkalokk: misc gitea cleanup #33
|
@ -35,7 +35,7 @@ in {
|
||||||
ROOT_URL = "https://${domain}/";
|
ROOT_URL = "https://${domain}/";
|
||||||
PROTOCOL = "http+unix";
|
PROTOCOL = "http+unix";
|
||||||
SSH_PORT = sshPort;
|
SSH_PORT = sshPort;
|
||||||
START_SSH_SERVER = true;
|
START_SSH_SERVER = true;
|
||||||
};
|
};
|
||||||
indexer.REPO_INDEXER_ENABLED = true;
|
indexer.REPO_INDEXER_ENABLED = true;
|
||||||
service.DISABLE_REGISTRATION = true;
|
service.DISABLE_REGISTRATION = true;
|
||||||
|
@ -50,8 +50,6 @@ in {
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
|
|
||||||
services.gitea-themes.monokai = pkgs.gitea-theme-monokai;
|
|
||||||
|
|
||||||
environment.systemPackages = [ cfg.package ];
|
environment.systemPackages = [ cfg.package ];
|
||||||
|
|
||||||
services.nginx.virtualHosts."${domain}" = {
|
services.nginx.virtualHosts."${domain}" = {
|
||||||
|
@ -68,12 +66,28 @@ in {
|
||||||
|
|
||||||
networking.firewall.allowedTCPPorts = [ sshPort ];
|
networking.firewall.allowedTCPPorts = [ sshPort ];
|
||||||
|
|
||||||
system.activationScripts.linkGiteaLogo.text = let
|
# Extra customization
|
||||||
logo-svg = ../../../../assets/logo_blue_regular.svg;
|
|
||||||
logo-png = ../../../../assets/logo_blue_regular.png;
|
services.gitea-themes.monokai = pkgs.gitea-theme-monokai;
|
||||||
in ''
|
|
||||||
install -Dm444 ${logo-svg} ${cfg.stateDir}/custom/public/img/logo.svg
|
systemd.services.install-gitea-customization = {
|
||||||
install -Dm444 ${logo-png} ${cfg.stateDir}/custom/public/img/logo.png
|
description = "Install extra customization in gitea's CUSTOM_DIR";
|
||||||
install -Dm444 ${./loading.apng} ${cfg.stateDir}/custom/public/img/loading.png
|
wantedBy = [ "gitea.service" ];
|
||||||
'';
|
requiredBy = [ "gitea.service" ];
|
||||||
|
|
||||||
|
serviceConfig = {
|
||||||
|
Type = "oneshot";
|
||||||
|
User = cfg.user;
|
||||||
|
Group = cfg.group;
|
||||||
|
};
|
||||||
|
|
||||||
|
script = let
|
||||||
|
logo-svg = ../../../../assets/logo_blue_regular.svg;
|
||||||
|
logo-png = ../../../../assets/logo_blue_regular.png;
|
||||||
|
in ''
|
||||||
|
install -Dm444 ${logo-svg} ${cfg.customDir}/public/img/logo.svg
|
||||||
|
install -Dm444 ${logo-png} ${cfg.customDir}/public/img/logo.png
|
||||||
|
install -Dm444 ${./loading.apng} ${cfg.customDir}/public/img/loading.png
|
||||||
|
'';
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
why remove
Expected it to be part of the template on the frontpage. Turns out, its just a
<meta>
tag. I'd rather remove this now and spend some time making a nice template or something later.Those things aren't mutually exclusive. This shows up when you link it in matrix (or other opengraph compliant software)
Dropping for now to unblock PR. But I do really think it's weird to have this in one place and not the other. Maybe we can have a discussion about it next maintenance session.