From ae856e1c9e821e6e717581b6f4876e8116b4740d Mon Sep 17 00:00:00 2001 From: Michael Huebner Date: Mon, 16 Jun 2025 09:20:14 +0200 Subject: [PATCH] Move forgejo package conf to correct location --- git_system.nix | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/git_system.nix b/git_system.nix index d0818d6..310307d 100644 --- a/git_system.nix +++ b/git_system.nix @@ -78,6 +78,18 @@ in file = "forgejo_backup"; backupDir = "/backups"; }; + package = pkgs.forgejo.overrideAttrs ( + prev: { + postInstall = builtins.concatStringsSep "\n" [ + prev.postInstall + '' + chmod -R u+w $data/templates/custom/ + cp ${./home.tmpl} $data/templates/custom/ + chmod -R u-w $data/templates/custom/ + '' + ]; + } + ); }; openssh = { @@ -105,17 +117,4 @@ in }; }; }; - - package = pkgs.forgejo.overrideAttrs ( - prev: { - postInstall = builtins.concatStringsSep "\n" [ - prev.postInstall - '' - chmod -R u+w $data/templates/custom/ - cp ${./home.tmpl} $data/templates/custom/ - chmod -R u-w $data/templates/custom/ - '' - ]; - } - ); }