nixpkgs/nixos/tests/tzupdate.nix
2025-04-27 10:48:37 +02:00

22 lines
453 B
Nix

{ lib, ... }:
let
clientNodeName = "client";
in
{
name = "tzupdate";
# TODO: Test properly:
# - Add server node
# - Add client configuration to talk to the server node
# - Assert that the time zone changes appropriately
nodes.${clientNodeName} = {
services.tzupdate.enable = true;
};
testScript = ''
start_all()
${clientNodeName}.wait_for_unit("multi-user.target")
'';
meta.maintainers = [ lib.maintainers.l0b0 ];
}