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