mirror of
https://git.sr.ht/~rouven/nixos-config
synced 2025-04-26 08:28:31 +02:00
ssh3: init packages
This commit is contained in:
parent
ea48055ebb
commit
dab85522ba
10 changed files with 101 additions and 33 deletions
|
@ -1,27 +1,16 @@
|
|||
{ pkgs, lib, ... }:
|
||||
{
|
||||
systemd.user = {
|
||||
services.breaktimer = {
|
||||
services.ianny = {
|
||||
Unit = {
|
||||
Description = "Simple notification to take a break";
|
||||
Description = "Ianny break timer";
|
||||
After = [ "graphical-session-pre.target" ];
|
||||
PartOf = [ "graphical-session.target" ];
|
||||
};
|
||||
Service = {
|
||||
Type = "oneshot";
|
||||
ExecStart = ''${lib.getExe pkgs.libnotify} -i clock -e "It's time for a break" "Relax your eyes"'';
|
||||
ExecStart = "${pkgs.ianny}/bin/ianny";
|
||||
};
|
||||
};
|
||||
timers.breaktimer = {
|
||||
Unit = {
|
||||
Description = "Timer for the break notification";
|
||||
};
|
||||
Timer = {
|
||||
OnCalendar = "*:0/20";
|
||||
Unit = "breaktimer.service";
|
||||
};
|
||||
Install = {
|
||||
WantedBy = [ "timers.target" ];
|
||||
};
|
||||
|
||||
Install = { WantedBy = [ "graphical-session.target" ]; };
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue