.
This commit is contained in:
parent
ad55793d41
commit
6b64254eab
11 changed files with 155 additions and 12 deletions
|
|
@ -67,7 +67,7 @@
|
|||
enable = true;
|
||||
database.type = "postgres";
|
||||
|
||||
customDir = toString (pkgs.copyPathToStore ../custom);
|
||||
customDir = "/var/lib/forgejo/custom";
|
||||
settings = {
|
||||
server = {
|
||||
DOMAIN = cfg.domain;
|
||||
|
|
@ -116,6 +116,13 @@
|
|||
config.services.forgejo.stateDir
|
||||
];
|
||||
|
||||
# Copy branding assets to custom directory (Forgejo serves from /assets/img/)
|
||||
systemd.tmpfiles.rules = [
|
||||
"d /var/lib/forgejo/custom/public/assets/img 0755 forgejo forgejo -"
|
||||
"C+ /var/lib/forgejo/custom/public/assets/img/logo.svg - - - - ${toString ../custom/public/assets/img/logo.svg}"
|
||||
"C+ /var/lib/forgejo/custom/public/assets/img/favicon.svg - - - - ${toString ../custom/public/assets/img/favicon.svg}"
|
||||
];
|
||||
|
||||
services.gitea-actions-runner = lib.mkIf cfg.runner.enable {
|
||||
package = pkgs.forgejo-runner;
|
||||
instances.default = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue