Skip to content

Commit a9fb816

Browse files
authored
nixos/tzupdate: Fix reference to non-existing attribute (#402226)
2 parents a1eaf8e + 9b3ee87 commit a9fb816

File tree

3 files changed

+23
-1
lines changed

3 files changed

+23
-1
lines changed

nixos/modules/services/misc/tzupdate.nix

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@ in
6868

6969
systemd.timers.tzupdate = {
7070
enable = cfg.timer.enable;
71-
interval = cfg.timer.interval;
7271
timerConfig = {
7372
OnStartupSec = "30s";
7473
OnCalendar = cfg.timer.interval;

nixos/tests/all-tests.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1389,6 +1389,7 @@ in
13891389
tuxguitar = runTest ./tuxguitar.nix;
13901390
twingate = runTest ./twingate.nix;
13911391
typesense = handleTest ./typesense.nix { };
1392+
tzupdate = runTest ./tzupdate.nix;
13921393
ucarp = handleTest ./ucarp.nix { };
13931394
udisks2 = handleTest ./udisks2.nix { };
13941395
ulogd = handleTest ./ulogd/ulogd.nix { };

nixos/tests/tzupdate.nix

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
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+
}

0 commit comments

Comments
 (0)