2022-12-17 06:49:01 -08:00
|
|
|
{ pkgs, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
systemd.services.cal-alarms = {
|
|
|
|
serviceConfig.Type = "simple";
|
|
|
|
path = [
|
|
|
|
pkgs.libnotify
|
2022-12-17 07:02:14 -08:00
|
|
|
pkgs.dunst
|
2022-12-17 06:49:01 -08:00
|
|
|
pkgs.khal
|
2022-12-17 07:02:14 -08:00
|
|
|
pkgs.unixtools.column
|
|
|
|
pkgs.diffutils
|
2022-12-17 06:49:01 -08:00
|
|
|
];
|
|
|
|
startAt = "*08:00:00";
|
2022-12-17 07:02:14 -08:00
|
|
|
script = builtins.readFile ./alarm.sh;
|
2022-12-17 06:49:01 -08:00
|
|
|
serviceConfig = {
|
|
|
|
User = "anish";
|
|
|
|
Environment = "DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
systemd.timers.cal-alarms = {
|
|
|
|
wantedBy = [ "timers.target" ];
|
|
|
|
partOf = [ "cal-alarms.service" ];
|
|
|
|
timerConfig.OnCalendar = [ "*:0/10" ];
|
|
|
|
};
|
|
|
|
}
|