1 files changed, 4 insertions, 3 deletions
diff --git a/host/Rory-ovh/services/cgit.nix b/host/Rory-ovh/services/cgit.nix
index dad6f3f..cbdc350 100644
--- a/host/Rory-ovh/services/cgit.nix
+++ b/host/Rory-ovh/services/cgit.nix
@@ -1,19 +1,20 @@
{ pkgs, lib, cgit-magenta, ... }:
let
+ pkg = cgit-magenta.packages.${pkgs.stdenv.hostPlatform.system}.default;
base_cgit_config = {
enable = true;
nginx.virtualHost = "cgit.rory.gay";
#package = pkgs.cgit-pink;
- package = cgit-magenta.packages.${pkgs.stdenv.hostPlatform.system}.default;
+ package = pkg;
scanPath = "/data/git";
settings = {
css = "/cgit.css";
logo = "/cgit.png";
favicon = "/favicon.ico";
readme = ":README.MD";
- about-filter = "${pkgs.cgit-pink}/lib/cgit/filters/about-formatting.sh";
- source-filter = "${pkgs.cgit-pink}/lib/cgit/filters/syntax-highlighting.py";
+ about-filter = "${pkg}/lib/cgit/filters/about-formatting.sh";
+ source-filter = "${pkg}/lib/cgit/filters/syntax-highlighting.py";
clone-url = (
lib.concatStringsSep " " [
"https://cgit.rory.gay/$CGIT_REPO_URL"
|