From 8b23c50a54ad5028d72edef8ae39e5153b54c3bf Mon Sep 17 00:00:00 2001 From: Alyssa Ross Date: Sat, 2 Jan 2021 09:07:35 +0000 Subject: modules/spectrum/cgit: init It's very good to finally have this out of sys/atuin.nix. --- sys/atuin.nix | 53 ----------------------------------------------------- 1 file changed, 53 deletions(-) (limited to 'sys') 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" '' - - ''; - - spectrumReadme = pkgs.writeText "about.html" '' -
- -

Contributing to Spectrum

- -

- Want to contribute to Spectrum? We'd love to have you. - Have a look at the online - documentation. - -

- ''; - 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 = { -- cgit 1.4.1