diff options
Diffstat (limited to 'sys/atuin.nix')
-rw-r--r-- | sys/atuin.nix | 53 |
1 files changed, 0 insertions, 53 deletions
diff --git a/sys/atuin.nix b/sys/atuin.nix index 3902eb954182..bc947e0223ff 100644 --- a/sys/atuin.nix +++ b/sys/atuin.nix @@ -161,59 +161,6 @@ ''; }; - services.cgit.instances.spectrum = { - vhost = "spectrum-os.org"; - path = "/git"; - config = - let - cgitFooter = pkgs.writeText "cgit-footer.html" '' - <div class="footer">software for Ⓐutonomy</div> - ''; - - spectrumReadme = pkgs.writeText "about.html" '' - <article> - - <h1>Contributing to Spectrum</h1> - - <p> - Want to contribute to Spectrum? We'd love to have you. - Have a look at the <a href="/contributing.html">online - documentation</a>. - - </article> - ''; - in - pkgs.writeText "cgit.conf" '' - clone-prefix=https://spectrum-os.org/git - css=/git/cgit.css - enable-blame=1 - enable-commit-graph=1 - enable-follow-links=1 - enable-git-config=1 - enable-index-owner=0 - enable-log-filecount=1 - enable-log-linecount=1 - footer=${cgitFooter} - remove-suffix=1 - root-desc=Web interface for Spectrum source code - root-readme=${spectrumReadme} - root-title=Spectrum Git Repository Browser - snapshots=all - about-filter=${pkgs.cgit}/lib/cgit/filters/about-formatting.sh - source-filter=${pkgs.runCommandNoCC "source-filter.py" { - nativeBuildInputs = with pkgs; with python3.pkgs; [ wrapPython ]; - } '' - mkdir -p $out/bin - sed s/pastie/friendly/g >$out/bin/syntax-highlighting.py \ - <${pkgs.cgit}/lib/cgit/filters/.syntax-highlighting.py-wrapped - chmod +x $out/bin/syntax-highlighting.py - wrapPythonPrograms - ''}/bin/syntax-highlighting.py - - scan-path=/home/spectrum/git - ''; - }; - services.nginx.virtualHosts = let vhosts = { |