mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-10 03:23:29 +03:00
23 lines
453 B
Nix
23 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 ];
|
||
|
}
|