1 import ./make-test-python.nix ({ lib, ... }:
6 maintainers = with lib.maintainers; [ fpletz ];
13 metrics.enable = true;
14 useNetworkingTimeServers = false;
23 minimum-agreeing-sources = 1;
29 networking.firewall.allowedUDPPorts = [ 123 ];
32 metrics.enable = true;
35 { listen = "[::]:123"; }
42 testScript = { nodes, ... }: ''
45 for machine in (server, client):
46 machine.wait_for_unit('multi-user.target')
47 machine.succeed('systemctl is-active ntpd-rs.service')
48 machine.succeed('systemctl is-active ntpd-rs-metrics.service')
49 machine.succeed('curl http://localhost:9975/metrics | grep ntp_uptime_seconds')