Unverified Commit a9fb8169 authored by xanderio's avatar xanderio Committed by GitHub
Browse files

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

parents a1eaf8e2 9b3ee879
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -68,7 +68,6 @@ in

    systemd.timers.tzupdate = {
      enable = cfg.timer.enable;
      interval = cfg.timer.interval;
      timerConfig = {
        OnStartupSec = "30s";
        OnCalendar = cfg.timer.interval;
+1 −0
Original line number Diff line number Diff line
@@ -1389,6 +1389,7 @@ in
  tuxguitar = runTest ./tuxguitar.nix;
  twingate = runTest ./twingate.nix;
  typesense = handleTest ./typesense.nix { };
  tzupdate = runTest ./tzupdate.nix;
  ucarp = handleTest ./ucarp.nix { };
  udisks2 = handleTest ./udisks2.nix { };
  ulogd = handleTest ./ulogd/ulogd.nix { };
+22 −0
Original line number Diff line number Diff line
{ 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 ];
}