remove github workflows and add breaktimer

This commit is contained in:
Rouven Seifert 2023-08-19 14:12:51 +02:00
parent 346d04e632
commit a1dc57a8de
Signed by: rouven.seifert
GPG key ID: B95E8FE6B11C4D09
8 changed files with 60 additions and 44 deletions

View file

@ -0,0 +1,27 @@
{ pkgs, lib, ... }:
{
systemd.user = {
services.breaktimer = {
Unit = {
Description = "Simple notification to take a break";
};
Service = {
Type = "oneshot";
ExecStart = ''${lib.getExe pkgs.libnotify} -i clock -e "It's time for a break" "Relax your eyes"'';
};
};
timers.breaktimer = {
Unit = {
Description = "Timer for the break notification";
};
Timer = {
OnCalendar = "*:0/20";
Unit = "breaktimer.service";
};
Install = {
WantedBy = [ "timers.target" ];
};
};
};
}

View file

@ -3,6 +3,7 @@
{
imports = [
# ./sway.nix
./breaktimer.nix
./river.nix
./waybar.nix
./shikane.nix