nix/os/devices/vmd32387: debug sshd

This commit is contained in:
steveej 2019-02-11 11:31:46 +01:00
parent 040a2895f5
commit 1a030dec60

View file

@ -52,6 +52,27 @@ in {
services.spice-vdagentd.enable = true; services.spice-vdagentd.enable = true;
services.qemuGuest.enable = true; services.qemuGuest.enable = true;
systemd.services."sshd-status" = {
enable = true;
description = "sshd-status service";
path = [ pkgs.systemd ];
script = ''
systemctl status sshd | grep -i tasks
'';
};
systemd.timers."sshd-status" = {
description = "Timer to trigger sshd-status periodically";
enable = true;
wantedBy = [ "timer.target" "multi-user.target" ];
timerConfig = {
OnActiveSec="5s";
OnUnitActiveSec="5s";
AccuracySec="1s";
Unit = "sshd-status.service";
};
};
boot.initrd.network = { boot.initrd.network = {
enable = true; enable = true;
udhcpc.extraArgs = [ "-x hostname:${config.networking.hostName}" ]; udhcpc.extraArgs = [ "-x hostname:${config.networking.hostName}" ];