blob: af9c1d5d961ca389ef897038231c2d1d40270520 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
{ lib, ... }:
{
name = "watchdogd";
meta.maintainers = with lib.maintainers; [ vifino ];
nodes.machine =
{ pkgs, ... }:
{
virtualisation.qemu.options = [
"-device i6300esb" # virtual watchdog timer
];
boot.kernelModules = [ "i6300esb" ];
services.watchdogd.enable = true;
services.watchdogd.settings = {
supervisor.enabled = true;
};
};
testScript = ''
machine.wait_for_unit("watchdogd.service")
assert "i6300ESB" in machine.succeed("watchdogctl status")
'';
}
|