diff options
Diffstat (limited to '')
-rw-r--r-- | modules/nixos/vhack/git-server/default.nix (renamed from modules/nixos/vhack/git-server.nix) | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/modules/nixos/vhack/git-server.nix b/modules/nixos/vhack/git-server/default.nix index bcc049a..550bc90 100644 --- a/modules/nixos/vhack/git-server.nix +++ b/modules/nixos/vhack/git-server/default.nix @@ -6,8 +6,12 @@ }: let cfg = config.vhack.git-server; in { - options.vhack.git-server.enable = lib.mkEnableOption "a lightweight git-server, - realised with cgit and gitolite."; + options.vhack.git-server = { + enable = lib.mkEnableOption '' + a lightweight git-server, realised with cgit and gitolite. + ''; + }; + config = lib.mkIf cfg.enable { services = { gitolite = { @@ -20,6 +24,7 @@ in { $RC{UMASK} = 0027; # Enable group access, important for cgit. ''; }; + cgit."git.vhack.eu" = { enable = true; package = pkgs.cgit-pink; @@ -31,6 +36,7 @@ in { source-filter = "${config.services.cgit."git.vhack.eu".package}/lib/cgit/filters/syntax-highlighting.py"; }; }; + nginx.virtualHosts."git.vhack.eu" = { enableACME = true; forceSSL = true; |