From d42b2caba5b0f130bb515b61def94f6bb1390328 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cyryl=20P=C5=82otnicki?= Date: Fri, 2 Dec 2022 20:35:46 +0000 Subject: [PATCH] upgrade vpsfree --- nixos/boxes/vpsfree1/default.nix | 2 +- nixos/boxes/vpsfree1/gitea.nix | 2 +- nixos/server-security.nix | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/nixos/boxes/vpsfree1/default.nix b/nixos/boxes/vpsfree1/default.nix index 33103e57..05e1c966 100644 --- a/nixos/boxes/vpsfree1/default.nix +++ b/nixos/boxes/vpsfree1/default.nix @@ -26,5 +26,5 @@ boot.binfmt.emulatedSystems = [ "aarch64-linux" ]; time.timeZone = "Europe/London"; - nix.buildCores = 7; + nix.settings.cores = 8; } diff --git a/nixos/boxes/vpsfree1/gitea.nix b/nixos/boxes/vpsfree1/gitea.nix index e3b370bb..c2309f90 100644 --- a/nixos/boxes/vpsfree1/gitea.nix +++ b/nixos/boxes/vpsfree1/gitea.nix @@ -48,9 +48,9 @@ in { inherit domain httpPort; enable = true; rootUrl = baseurl; - disableRegistration = true; stateDir = path; settings = { + service.DISABLE_REGISTRATION = true; server = { START_SSH_SERVER = true; SSH_PORT = sshPort; diff --git a/nixos/server-security.nix b/nixos/server-security.nix index 087e26de..554536da 100644 --- a/nixos/server-security.nix +++ b/nixos/server-security.nix @@ -26,5 +26,5 @@ in { openssh.authorizedKeys.keys = authorizedKeys; }; - nix.trustedUsers = [ "root" "nix-builder" ]; + nix.settings.trusted-users = [ "root" "nix-builder" ]; }