about summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorWilliam Carroll <wpcarro@gmail.com>2020-03-10T23·06+0000
committerWilliam Carroll <wpcarro@gmail.com>2020-03-10T23·13+0000
commitc23e263a9fb604c0b2c189bb54c00204f31b6117 (patch)
treef14a65694690aab123ca8a9b727a1e554ddf95d2 /nixos
parent73db632090c171b3d5d727a2c2ae6fe580bf8b64 (diff)
Attempt to support gogs
Gogs claims to be an easy-to-use Git server and web frontend written in
golang. I'm eager to try it as an alternative to cgit.
Diffstat (limited to 'nixos')
-rw-r--r--nixos/socrates/configuration.nix17
1 files changed, 17 insertions, 0 deletions
diff --git a/nixos/socrates/configuration.nix b/nixos/socrates/configuration.nix
index 0d8d7a8612c4..94ef03def472 100644
--- a/nixos/socrates/configuration.nix
+++ b/nixos/socrates/configuration.nix
@@ -78,10 +78,20 @@ in {
   ##############################################################################
   # Services
   ##############################################################################
+
   services.openssh.enable = true;
 
   services.lorri.enable = true;
 
+  systemd.services.gogs = {
+    enable = true;
+    description = "Easy-to-use Git server written in golang";
+    script = "${pkgs.gogs}/bin/gogs web";
+    serviceConfig = {
+      Type = "simple";
+    };
+  };
+
   systemd.services.monzo-token-server = {
     enable = true;
     description = "Ensure my Monzo access token is valid";
@@ -151,6 +161,13 @@ in {
         # briefcase.learn as root.
         root = /home/wpcarro/briefcase/learn/static;
       };
+      "git.wpcarro.dev" = {
+        addSSL = true;
+        enableACME = true;
+        locations."/" = {
+          proxyPass = "http://localhost:3000";
+        };
+      };
       "blog.wpcarro.dev" = {
         addSSL = true;
         enableACME = true;