nix/os/devices/vmd32387: debug sshd
This commit is contained in:
parent
040a2895f5
commit
1a030dec60
1 changed files with 21 additions and 0 deletions
|
@ -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}" ];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue