diff --git a/git_system.nix b/git_system.nix index 0d1b8ba..4ddd559 100644 --- a/git_system.nix +++ b/git_system.nix @@ -57,13 +57,13 @@ in HTTP_PORT = 3000; SSH_PORT = 62; - # STATIC_ROOT_PATH = pkgs.runCommand "patch-templates" { } '' - # mkdir -p $out - # ${pkgs.lib.getExe' pkgs.coreutils "cp"} -r ${pkgs.forgejo.data}/* $out - # chmod u+w $out/templates/home.tmpl - # ${pkgs.lib.getExe' pkgs.coreutils "cp"} -f ${./home.tmpl} $out/templates/home.tmpl - # chmod u-w $out/templates/home.tmpl - # ''; + STATIC_ROOT_PATH = pkgs.runCommand "patch-templates" { } '' + mkdir -p $out + ${pkgs.lib.getExe' pkgs.coreutils "cp"} -r ${config.services.forgejo.package.data}/* $out + chmod u+w $out/templates/home.tmpl + ${pkgs.lib.getExe' pkgs.coreutils "cp"} -f ${./home.tmpl} $out/templates/home.tmpl + chmod u-w $out/templates/home.tmpl + ''; }; service.DISABLE_REGISTRATION = true; actions = { @@ -88,8 +88,6 @@ in }; }; - - openssh = { ports = [ 62 ]; settings = { diff --git a/home.tmpl b/home.tmpl index 21d42eb..c43dfac 100644 --- a/home.tmpl +++ b/home.tmpl @@ -1,19 +1,18 @@ {{template "base/head" .}}