track time reminder
This commit is contained in:
parent
4a7b27602d
commit
9d9640ac16
@ -16,6 +16,7 @@ toplevel@{ inputs, withSystem, ... }:
|
||||
mods.dev
|
||||
mods.essential
|
||||
mods.random
|
||||
mods.reminders
|
||||
inputs.catppuccin.homeManagerModules.catppuccin
|
||||
];
|
||||
});
|
||||
|
@ -142,5 +142,32 @@
|
||||
};
|
||||
}
|
||||
);
|
||||
reminders =
|
||||
moduleWithSystem (
|
||||
top@{ ... }:
|
||||
perSystem@{ pkgs, ... }: {
|
||||
systemd.user = {
|
||||
timers = {
|
||||
track-time = {
|
||||
Timer = {
|
||||
OnCalendar = "Mon..Fri *-*-* 16:00:*";
|
||||
Persistent = true;
|
||||
};
|
||||
Install = {
|
||||
WantedBy = [ "timers.target" ];
|
||||
};
|
||||
};
|
||||
};
|
||||
services = {
|
||||
track-time = {
|
||||
Service = {
|
||||
Type = "oneshot";
|
||||
ExecStart = [ "${pkgs.libnotify}/bin/notify-send -u critical 'Reminder: Track time'" ];
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
);
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user