mirror of
https://git.sr.ht/~rouven/nixos-config
synced 2025-04-25 16:08:30 +02:00
remove github workflows and add breaktimer
This commit is contained in:
parent
346d04e632
commit
a1dc57a8de
8 changed files with 60 additions and 44 deletions
27
users/rouven/modules/wayland/breaktimer.nix
Normal file
27
users/rouven/modules/wayland/breaktimer.nix
Normal 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" ];
|
||||
};
|
||||
|
||||
};
|
||||
};
|
||||
}
|
|
@ -3,6 +3,7 @@
|
|||
{
|
||||
imports = [
|
||||
# ./sway.nix
|
||||
./breaktimer.nix
|
||||
./river.nix
|
||||
./waybar.nix
|
||||
./shikane.nix
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue