From 10de2798a0c3ed5f498e3ebb214cffbc8174b9dd Mon Sep 17 00:00:00 2001 From: William Carroll Date: Mon, 31 Jan 2022 13:56:58 -0800 Subject: feat(wpcarro/marcus): Schedule daily reboots Every day at 3AM reboot marcus. Change-Id: Ia076b937a110039077add13360bd4fac3d7aa9d2 Reviewed-on: https://cl.tvl.fyi/c/depot/+/5147 Tested-by: BuildkiteCI Reviewed-by: wpcarro Autosubmit: wpcarro --- users/wpcarro/nixos/marcus/default.nix | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'users') diff --git a/users/wpcarro/nixos/marcus/default.nix b/users/wpcarro/nixos/marcus/default.nix index a84d33ead7..bcccfdba97 100644 --- a/users/wpcarro/nixos/marcus/default.nix +++ b/users/wpcarro/nixos/marcus/default.nix @@ -37,6 +37,15 @@ in interfaces.wlp0s20f3.useDHCP = true; }; + # Schedule daily reboots. + systemd.timers.auto-reboot = { + wantedBy = [ "timers.target" ]; + timerConfig = { + OnCalendar = "*-*-* 03:00:00"; + Unit = "reboot.target"; + }; + }; + services = wpcarro.common.services // { tzupdate.enable = true; -- cgit 1.4.1