common/sshd: socket activate

This commit is contained in:
Oystein Kristoffer Tveit 2023-07-28 21:49:49 +02:00
parent c98a1a0541
commit e6605b3a73
Signed by: oysteikt
GPG Key ID: 9F2F7D8250F35146
2 changed files with 13 additions and 13 deletions

View File

@ -240,10 +240,14 @@ in {
resolved.enable = true;
openssh= {
passwordAuthentication = false;
kbdInteractiveAuthentication = false;
permitRootLogin = "no";
openssh = {
startWhenNeeded = true;
settings = {
StreamLocalBindUnlink = true;
PasswordAuthentication = false;
KbdInteractiveAuthentication = false;
PermitRootLogin = "no";
};
};
udev.packages = with pkgs; [

View File

@ -59,15 +59,11 @@
firewall.enable=true;
};
services = {
openssh.enable = true;
printing.enable = true;
cron = {
enable = true;
systemCronJobs = [
# "*/5 * * * * root date >> /tmp/cron.log"
];
};
services.openssh.enable = true;
systemd.services."sshd@".serviceConfig = {
Nice = -15;
IOSchedulingClass = "realtime";
};
users = {