machines/magenta: use gitea from nixpkgs
This commit is contained in:
parent
055ff43148
commit
c624f22538
1 changed files with 0 additions and 12 deletions
|
@ -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}";
|
||||
|
|
Loading…
Reference in a new issue