track time reminder

This commit is contained in:
Ivan Kirilov Dimitrov 2024-06-18 20:56:19 +02:00
parent 4a7b27602d
commit 9d9640ac16
No known key found for this signature in database
GPG Key ID: 0BDAD4B211C49294
2 changed files with 28 additions and 0 deletions

View File

@ -16,6 +16,7 @@ toplevel@{ inputs, withSystem, ... }:
mods.dev
mods.essential
mods.random
mods.reminders
inputs.catppuccin.homeManagerModules.catppuccin
];
});

View File

@ -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'" ];
};
};
};
};
}
);
};
}