update to nixos 23.05

This commit is contained in:
Felix Buehler 2023-06-01 00:09:26 +02:00
parent 337679971a
commit bd978f6b03
12 changed files with 28 additions and 26 deletions

View file

@ -18,9 +18,11 @@ in
config = lib.mkIf cfg.enable {
services.gitea = {
enable = true;
httpPort = cfg.port;
rootUrl = "https://code.${domain}";
settings = {
server = {
HTTP_PORT = cfg.port;
ROOT_URL = "https://code.${domain}";
};
session.COOKIE_SECURE = true;
service.DISABLE_REGISTRATION = true;
ui.DEFAULT_THEME = "arc-green";

View file

@ -53,7 +53,7 @@ in
config = lib.mkIf cfg.enable {
services.nextcloud = {
enable = true;
package = pkgs.nextcloud25;
package = pkgs.nextcloud26;
hostName = "cloud.${domain}";
maxUploadSize = cfg.maxSize;
autoUpdateApps.enable = true;

View file

@ -13,8 +13,10 @@ in
# Enable the OpenSSH daemon.
enable = true;
# Be more secure
permitRootLogin = "no";
passwordAuthentication = false;
settings = {
PermitRootLogin = "no";
PasswordAuthentication = false;
};
};
# Opens the relevant UDP ports.

View file

@ -25,10 +25,9 @@ in
dockerSocket.enable = true;
# Allow DNS resolution in the default network
defaultNetwork.dnsname.enable = true;
defaultNetwork.settings.dns_enabled = true;
# TODO enable in NixOS 23.05
# autoPrune.enable = true;
autoPrune.enable = true;
};
};
}