machines/magenta: use gitea from nixpkgs

This commit is contained in:
Dmitriy Pleshevskiy 2023-02-22 17:56:30 +03:00
parent 055ff43148
commit c624f22538
Signed by: pleshevskiy
GPG key ID: 79C4487B44403985

View file

@ -5,17 +5,6 @@ let
giteaCfg = config.services.gitea;
gitea = pkgs.gitea.overrideAttrs (oldAttrs: {
postInstall = with pkgs; ''
mkdir $data
cp -R ./go/src/${oldAttrs.goPackagePath}/{public,templates,options} $data
mkdir -p $out
cp -R ./go/src/${oldAttrs.goPackagePath}/options/locale $out/locale
wrapProgram $out/bin/gitea \
--prefix PATH : ${lib.makeBinPath [ bash git gzip openssh gnupg ]}
'';
});
robotsTxt = pkgs.writeText "robots.txt" ''
User-agent: *
Disallow: /
@ -26,7 +15,6 @@ in
services.gitea = {
enable = true;
package = gitea;
httpPort = 9901;
domain = hostname;
rootUrl = "https://${hostname}";