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; resolved.enable = true;
openssh= { openssh = {
passwordAuthentication = false; startWhenNeeded = true;
kbdInteractiveAuthentication = false; settings = {
permitRootLogin = "no"; StreamLocalBindUnlink = true;
PasswordAuthentication = false;
KbdInteractiveAuthentication = false;
PermitRootLogin = "no";
};
}; };
udev.packages = with pkgs; [ udev.packages = with pkgs; [

View File

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