remove timer
This commit is contained in:
@@ -1,18 +1,18 @@
|
|||||||
{ config, pkgs, ... }: {
|
{ config, pkgs, ... }: {
|
||||||
systemd.services.auto-shutdown = {
|
# systemd.services.auto-shutdown = {
|
||||||
description = "Automatic daily shutdown at 9:30 pm";
|
# description = "Automatic daily shutdown at 9:30 pm";
|
||||||
serviceConfig = {
|
# serviceConfig = {
|
||||||
Type = "oneshot";
|
# Type = "oneshot";
|
||||||
ExecStart = [ "${pkgs.systemd}/bin/systemctl poweroff" ];
|
# ExecStart = [ "${pkgs.systemd}/bin/systemctl poweroff" ];
|
||||||
};
|
# };
|
||||||
};
|
# };
|
||||||
|
|
||||||
systemd.timers.auto-shutdown = {
|
# systemd.timers.auto-shutdown = {
|
||||||
description = "Timer for daily shutdown at 9:30 pm";
|
# description = "Timer for daily shutdown at 9:30 pm";
|
||||||
wantedBy = [ "timers.target" ];
|
# wantedBy = [ "timers.target" ];
|
||||||
timerConfig = {
|
# timerConfig = {
|
||||||
OnCalendar = "21:40";
|
# OnCalendar = "21:40";
|
||||||
Persistent = true;
|
# Persistent = true;
|
||||||
};
|
# };
|
||||||
};
|
# };
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user