diff --git a/hosts/web/configuration.nix b/hosts/web/configuration.nix index 1d21640..823b9e1 100644 --- a/hosts/web/configuration.nix +++ b/hosts/web/configuration.nix @@ -14,14 +14,16 @@ system.stateVersion = "21.11"; - boot.cleanTmpDir = true; + boot.tmp.cleanOnBoot = true; zramSwap.enable = false; networking.hostName = "web"; services.openssh = { enable = true; - permitRootLogin = "no"; - passwordAuthentication = false; - kbdInteractiveAuthentication = false; + settings = { + PermitRootLogin = "no"; + PasswordAuthentication = false; + KbdInteractiveAuthentication = false; + }; }; } diff --git a/modules/gitea.nix b/modules/gitea.nix index f1a143c..36a8433 100644 --- a/modules/gitea.nix +++ b/modules/gitea.nix @@ -8,13 +8,15 @@ database = { type = "sqlite3"; # Database type }; - domain = "git.atlanticaweb.fr"; # Domain name - rootUrl = "https://git.atlanticaweb.fr/"; # Root web URL - httpPort = 3001; # Provided unique port + settings.server = { + ROOT_URL = "https://git.atlanticaweb.fr/"; # Root web URL + HTTP_PORT = 3001; # Provided unique port + DOMAIN = "git.atlanticaweb.fr"; # Domain name + }; dump.enable = true; dump.backupDir = "/srv/backup/gitea"; lfs.enable = true; - disableRegistration = true; # comment this line for the first user admin + settings.service.DISABLEREGISTRATION = true; # comment this line for the first user admin }; }