From 1f5487f9e6208d51af81d524be9daa1d6ec0484c Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Sun, 31 Mar 2019 23:51:06 +0800 Subject: [PATCH] gitlab -> gitea Gitlab is bloated. --- nixbld-etc-nixos/configuration.nix | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/nixbld-etc-nixos/configuration.nix b/nixbld-etc-nixos/configuration.nix index 8f4bde2..e519626 100644 --- a/nixbld-etc-nixos/configuration.nix +++ b/nixbld-etc-nixos/configuration.nix @@ -113,14 +113,10 @@ ACTION=="add", SUBSYSTEM=="tty", \ virtualisation.libvirtd.enable = true; - services.gitlab = { + services.gitea = { enable = true; - host = "gitlab.m-labs.hk"; - port = 443; - https = true; - databasePassword = pkgs.lib.fileContents /etc/nixos/secret/gitlab-db-password; - secrets = import /etc/nixos/secret/gitlab.nix; - initialRootPassword = pkgs.lib.fileContents /etc/nixos/secret/gitlab-default-root; + httpPort = 3001; + rootUrl = "https://git.m-labs.hk/"; }; services.nginx = { @@ -142,10 +138,10 @@ ACTION=="add", SUBSYSTEM=="tty", \ enableACME = true; locations."/".proxyPass = "http://127.0.0.1:3000"; }; - "gitlab.m-labs.hk" = { + "git.m-labs.hk" = { forceSSL = true; enableACME = true; - locations."/".proxyPass = "http://unix:/run/gitlab/gitlab-workhorse.socket"; + locations."/".proxyPass = "http://127.0.0.1:3001"; }; }; };