diff options
author | William Carroll <wpcarro@gmail.com> | 2022-01-31T21·56-0800 |
---|---|---|
committer | clbot <clbot@tvl.fyi> | 2022-01-31T22·05+0000 |
commit | 10de2798a0c3ed5f498e3ebb214cffbc8174b9dd (patch) | |
tree | f025e113ce5420c50c456736fce29ba2c03e7a8c /users | |
parent | b7de629e053787241666553ba74b52ac11a3acf4 (diff) |
feat(wpcarro/marcus): Schedule daily reboots r/3727
Every day at 3AM reboot marcus. Change-Id: Ia076b937a110039077add13360bd4fac3d7aa9d2 Reviewed-on: https://cl.tvl.fyi/c/depot/+/5147 Tested-by: BuildkiteCI Reviewed-by: wpcarro <wpcarro@gmail.com> Autosubmit: wpcarro <wpcarro@gmail.com>
Diffstat (limited to 'users')
-rw-r--r-- | users/wpcarro/nixos/marcus/default.nix | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/users/wpcarro/nixos/marcus/default.nix b/users/wpcarro/nixos/marcus/default.nix index a84d33ead75b..bcccfdba974f 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; |