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;
|
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" ''
|
robotsTxt = pkgs.writeText "robots.txt" ''
|
||||||
User-agent: *
|
User-agent: *
|
||||||
Disallow: /
|
Disallow: /
|
||||||
|
@ -26,7 +15,6 @@ in
|
||||||
|
|
||||||
services.gitea = {
|
services.gitea = {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = gitea;
|
|
||||||
httpPort = 9901;
|
httpPort = 9901;
|
||||||
domain = hostname;
|
domain = hostname;
|
||||||
rootUrl = "https://${hostname}";
|
rootUrl = "https://${hostname}";
|
||||||
|
|
Loading…
Reference in a new issue