From c23e263a9fb604c0b2c189bb54c00204f31b6117 Mon Sep 17 00:00:00 2001 From: William Carroll Date: Tue, 10 Mar 2020 23:06:03 +0000 Subject: 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. --- nixos/socrates/configuration.nix | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'nixos') 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; -- cgit 1.4.1