diff --git a/systems/x86_64-linux/mx/default.nix b/systems/x86_64-linux/mx/default.nix index 3efb22c..493ee7a 100644 --- a/systems/x86_64-linux/mx/default.nix +++ b/systems/x86_64-linux/mx/default.nix @@ -118,18 +118,6 @@ }; wantedBy = [ "default.target" ]; }; - }; - - systemd.timers = { - check_boot = { - timerConfig = { - OnCalendar = "daily"; - }; - wantedBy = [ "timers.target" ]; - }; - }; - - systemd.services = { check_root = { serviceConfig = { Type = "oneshot"; @@ -140,7 +128,7 @@ THRESHOLD=85 if [ "$CURRENT" -gt "$THRESHOLD" ] ; then - ${pkgs.mailutils}/bin/mail -s '/boot Disk Space Alert' harald << EOF + ${pkgs.mailutils}/bin/mail -s '/ Disk Space Alert' harald << EOF Your root partition remaining free space is critically low. Used: $CURRENT% EOF fi @@ -152,6 +140,12 @@ }; systemd.timers = { + check_boot = { + timerConfig = { + OnCalendar = "daily"; + }; + wantedBy = [ "timers.target" ]; + }; check_root = { timerConfig = { OnCalendar = "daily";