about summary refs log tree commit diff
path: root/users/wpcarro
diff options
context:
space:
mode:
authorWilliam Carroll <wpcarro@gmail.com>2022-01-31T21·56-0800
committerclbot <clbot@tvl.fyi>2022-01-31T22·05+0000
commit10de2798a0c3ed5f498e3ebb214cffbc8174b9dd (patch)
treef025e113ce5420c50c456736fce29ba2c03e7a8c /users/wpcarro
parentb7de629e053787241666553ba74b52ac11a3acf4 (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/wpcarro')
-rw-r--r--users/wpcarro/nixos/marcus/default.nix9
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;