summaryrefslogtreecommitdiff
path: root/nix/modules/cgit.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nix/modules/cgit.nix')
-rw-r--r--nix/modules/cgit.nix34
1 files changed, 0 insertions, 34 deletions
diff --git a/nix/modules/cgit.nix b/nix/modules/cgit.nix
deleted file mode 100644
index 5bf888d..0000000
--- a/nix/modules/cgit.nix
+++ /dev/null
@@ -1,34 +0,0 @@
-{ lib, config, ... }:
-let
- serverName = "git.${config.monorepo.vars.orgHost}";
-in
-{
- services.cgit."my-projects" = {
- enable = lib.mkDefault config.services.gitDaemon.enable;
- scanPath = "${config.users.users.git.home}";
- settings = {
- root-title = "Nullring Git Server";
- root-desc = "Projects and cool things";
- enable-commit-graph = 1;
- enable-log-filecount = 1;
- enable-log-linecount = 1;
- enable-index-owner = 0;
- clone-prefix = "https://${serverName}";
- enable-tree-linenumbers = 1;
- strict-export = "git-daemon-export-ok";
- };
- gitHttpBackend = {
- enable = true;
- checkExportOkFiles = true;
- };
- nginx = {
- virtualHost = "${serverName}";
- };
- };
-
- networking.domains.subDomains."${serverName}" = lib.mkIf config.services.cgit."my-projects".enable { };
- services.nginx.virtualHosts."${serverName}" = lib.mkIf config.services.cgit."my-projects".enable {
- forceSSL = true;
- enableACME = true;
- };
-}