services: Update outdated options

This commit is contained in:
Tristan Daniël Maat 2023-07-28 11:23:56 +02:00
parent ecbf382d43
commit 828d3f3878
Signed by: tlater
GPG key ID: 49670FD774E43268
3 changed files with 16 additions and 11 deletions

View file

@ -108,11 +108,14 @@
services.openssh = {
enable = true;
allowSFTP = false;
passwordAuthentication = false;
permitRootLogin = "no";
ports = [2222];
startWhenNeeded = true;
gatewayPorts = "yes";
settings = {
GatewayPorts = "yes";
PermitRootLogin = "no";
PasswordAuthentication = false;
};
};
security = {

View file

@ -2,18 +2,19 @@
domain = "gitea.${config.services.nginx.domain}";
in {
services.gitea = {
inherit domain;
enable = true;
httpAddress = "127.0.0.1";
database.type = "postgres";
rootUrl = "https://${domain}/";
appName = "Gitea: Git with a cup of tea";
settings = {
server.SSH_PORT = 2222;
server = {
DOMAIN = domain;
HTTP_ADDR = "127.0.0.1";
ROOT_URL = "https://${domain}/";
SSH_PORT = 2222;
};
service.DISABLE_REGISTRATION = true;
session.COOKIE_SECURE = true;
};
@ -21,7 +22,8 @@ in {
# Set up SSL
services.nginx.virtualHosts."${domain}" = let
inherit (config.services.gitea) httpAddress httpPort;
httpAddress = config.services.gitea.settings.server.HTTP_ADDR;
httpPort = config.services.gitea.settings.server.HTTP_PORT;
in {
forceSSL = true;
enableACME = true;

View file

@ -3,7 +3,7 @@
config,
...
}: let
nextcloud = pkgs.nextcloud25;
nextcloud = pkgs.nextcloud26;
hostName = "nextcloud.${config.services.nginx.domain}";
in {
services.nextcloud = {