common/sshd: socket activate
This commit is contained in:
parent
c98a1a0541
commit
e6605b3a73
|
@ -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; [
|
||||
|
|
|
@ -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 = {
|
||||
|
|
Loading…
Reference in New Issue