From c624f225380c922ca11395ae7f57d51bfbf039df Mon Sep 17 00:00:00 2001 From: Dmitriy Pleshevskiy Date: Wed, 22 Feb 2023 17:56:30 +0300 Subject: [PATCH] machines/magenta: use gitea from nixpkgs --- machines/magenta/services/gitea.nix | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/machines/magenta/services/gitea.nix b/machines/magenta/services/gitea.nix index 3c871d5..c181dad 100644 --- a/machines/magenta/services/gitea.nix +++ b/machines/magenta/services/gitea.nix @@ -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}";