diff --git a/configuration.ao.nix b/configuration.ao.nix index 85ae7981..3341a5cd 100644 --- a/configuration.ao.nix +++ b/configuration.ao.nix @@ -55,4 +55,14 @@ "dl.v0.io".email = "henrik@lissner.net"; "git.v0.io".email = "henrik@lissner.net"; }; + + services.gitea = { + appName = "V-NOUGHT"; + domain = "v0.io"; + rootUrl = "https://git.v0.io/"; + extraConfig = '' + [server] + SSH_DOMAIN = v0.io + ''; + }; } diff --git a/modules/services/gitea.nix b/modules/services/gitea.nix index 84e354be..1ebbee0b 100644 --- a/modules/services/gitea.nix +++ b/modules/services/gitea.nix @@ -1,6 +1,7 @@ { config, lib, pkgs, ... }: { + # I prefer git@... ssh addresses over gitea@... users.users.git = { useDefaultShell = true; home = "/var/lib/gitea"; @@ -11,19 +12,14 @@ enable = true; log.level = "Info"; - appName = "V-NOUGHT"; database = { user = "git"; type = "postgres"; }; - domain = "v0.io"; - rootUrl = "https://git.v0.io/"; - cookieSecure = true; useWizard = false; disableRegistration = true; - extraConfig = '' - [server] - SSH_DOMAIN = v0.io - ''; + + # We're assuming SSL-only connectivity + cookieSecure = true; }; }