From 31232b24fe1521cc016cca7fceccfb79040381b2 Mon Sep 17 00:00:00 2001 From: Ivan Dimitrov Date: Fri, 13 Oct 2023 16:59:57 +0300 Subject: [PATCH] making the config buildable for amazon iso --- mailserver/configuration.nix | 23 +++++++++++++++++------ 1 file changed, 17 insertions(+), 6 deletions(-) diff --git a/mailserver/configuration.nix b/mailserver/configuration.nix index 1caeeea..6fa7563 100644 --- a/mailserver/configuration.nix +++ b/mailserver/configuration.nix @@ -1,16 +1,27 @@ -{ config, pkgs, ... }: +{ config, pkgs, lib, ... }: { website.enable = true; mailserver.enable = true; - services.openssh.enable = true; - services.openssh.settings.PermitRootLogin = "yes"; + services = { + openssh = { + enable = true; + settings = { + PermitRootLogin = "prohibit-password"; + }; + }; + }; #users.extraUsers.root.openssh.authorizedKeys.keys = # [ "..." ]; - systemd.extraConfig = '' - DefaultTimeoutStartSec=900s - ''; + systemd = { + services = { + "serial-getty@ttyS0".enable = lib.mkForce false; + }; + extraConfig = '' + DefaultTimeoutStartSec=900s + ''; + }; time.timeZone = "Europe/Amsterdam";