nixos/tzupdate: Fix reference to non-existing attribute (#402226)

authored by

xanderio and committed by
GitHub
a9fb8169 a1eaf8e2

+23 -1
-1
nixos/modules/services/misc/tzupdate.nix
··· 68 68 69 69 systemd.timers.tzupdate = { 70 70 enable = cfg.timer.enable; 71 - interval = cfg.timer.interval; 72 71 timerConfig = { 73 72 OnStartupSec = "30s"; 74 73 OnCalendar = cfg.timer.interval;
+1
nixos/tests/all-tests.nix
··· 1389 1389 tuxguitar = runTest ./tuxguitar.nix; 1390 1390 twingate = runTest ./twingate.nix; 1391 1391 typesense = handleTest ./typesense.nix { }; 1392 + tzupdate = runTest ./tzupdate.nix; 1392 1393 ucarp = handleTest ./ucarp.nix { }; 1393 1394 udisks2 = handleTest ./udisks2.nix { }; 1394 1395 ulogd = handleTest ./ulogd/ulogd.nix { };
+22
nixos/tests/tzupdate.nix
··· 1 + { lib, ... }: 2 + let 3 + clientNodeName = "client"; 4 + in 5 + { 6 + name = "tzupdate"; 7 + 8 + # TODO: Test properly: 9 + # - Add server node 10 + # - Add client configuration to talk to the server node 11 + # - Assert that the time zone changes appropriately 12 + nodes.${clientNodeName} = { 13 + services.tzupdate.enable = true; 14 + }; 15 + 16 + testScript = '' 17 + start_all() 18 + ${clientNodeName}.wait_for_unit("multi-user.target") 19 + ''; 20 + 21 + meta.maintainers = [ lib.maintainers.l0b0 ]; 22 + }