diff options
Diffstat (limited to '')
| -rw-r--r-- | modules/git/cgit.nix | 16 | 
1 files changed, 14 insertions, 2 deletions
| diff --git a/modules/git/cgit.nix b/modules/git/cgit.nix index c54f19a..56112e9 100644 --- a/modules/git/cgit.nix +++ b/modules/git/cgit.nix @@ -2,11 +2,13 @@  let    repositoryPath = "/home/compromyse"; +  cgit = (pkgs.callPackage ../../packages/cgit.nix {});  in {    services.cgit."git.compromyse.xyz" = {      enable = true;      user = "root";      group = "root"; +    package = cgit;      scanPath = repositoryPath;      settings = {        root-title = "compromyse: CGIT"; @@ -15,9 +17,19 @@ in {        enable-commit-graph = true;        enable-follow-links = true; -      source-filter = "${pkgs.cgit}/lib/cgit/filters/syntax-highlighting.py"; +      source-filter = "${cgit}/lib/cgit/filters/syntax-highlighting.py"; -      head-include=/config/modules/git/cgit_theme.css +      head-include = "/config/modules/git/cgit_theme.css"; +      virtual-root = "/"; +      clone-prefix = "https://git.compromyse.xyz"; + +      "mimetype.gif" = "image/gif"; +      "mimetype.html" = "text/html"; +      "mimetype.jpg" = "image/jpeg"; +      "mimetype.jpeg" = "image/jpeg"; +      "mimetype.pdf" = "application/pdf"; +      "mimetype.png" = "image/png"; +      "mimetype.svg" = "image/svg+xml";      };      nginx.virtualHost = "git.compromyse.xyz";    }; | 
