about summary refs log tree commit diff
path: root/sys
diff options
context:
space:
mode:
authorAlyssa Ross <hi@alyssa.is>2021-01-02 09:07:35 +0000
committerAlyssa Ross <hi@alyssa.is>2021-01-02 10:26:19 +0000
commit8b23c50a54ad5028d72edef8ae39e5153b54c3bf (patch)
tree6764ec9b2d8171f31ab5bf5f13a35d48266dd22e /sys
parent7b89d60ddb6bca484bfa3358ddd3dd1c8239252a (diff)
downloadnixlib-8b23c50a54ad5028d72edef8ae39e5153b54c3bf.tar
nixlib-8b23c50a54ad5028d72edef8ae39e5153b54c3bf.tar.gz
nixlib-8b23c50a54ad5028d72edef8ae39e5153b54c3bf.tar.bz2
nixlib-8b23c50a54ad5028d72edef8ae39e5153b54c3bf.tar.lz
nixlib-8b23c50a54ad5028d72edef8ae39e5153b54c3bf.tar.xz
nixlib-8b23c50a54ad5028d72edef8ae39e5153b54c3bf.tar.zst
nixlib-8b23c50a54ad5028d72edef8ae39e5153b54c3bf.zip
modules/spectrum/cgit: init
It's very good to finally have this out of sys/atuin.nix.
Diffstat (limited to 'sys')
-rw-r--r--sys/atuin.nix53
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 = {