diff --git a/nixos/socrates/configuration.nix b/nixos/socrates/configuration.nix index 0d8d7a861..94ef03def 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;