home/tealdeer: add timer for updating tldr db
This commit is contained in:
parent
4b4cae7cd1
commit
a8aec2c3b8
@ -19,7 +19,7 @@ in {
|
||||
./programs/less.nix
|
||||
./programs/neovim.nix
|
||||
./programs/nix-index
|
||||
./programs/tealdeer.nix
|
||||
./programs/tealdeer
|
||||
./programs/tmux.nix
|
||||
./programs/zsh
|
||||
|
||||
|
@ -1,10 +1,8 @@
|
||||
{ pkgs, lib, ... }:
|
||||
{
|
||||
programs.tealdeer.enable = true;
|
||||
|
||||
systemd.user.services.tealdeer-refresh = {
|
||||
systemd.user.services.update-tldr-db = {
|
||||
Unit = {
|
||||
Description = "Refresh tealdeer contents";
|
||||
Description = "Update tealdeer database";
|
||||
};
|
||||
|
||||
Service = {
|
||||
@ -15,13 +13,13 @@
|
||||
};
|
||||
};
|
||||
|
||||
systemd.user.timers.tealdeer-refresh = {
|
||||
systemd.user.timers.update-tldr-db = {
|
||||
Unit = {
|
||||
Description = "Refresh tealdeer contents";
|
||||
Description = "Update tealdeer database";
|
||||
};
|
||||
|
||||
Timer = {
|
||||
Unit = "tealdeer-refresh.service";
|
||||
Unit = "update-tldr-db.service";
|
||||
OnCalendar = "daily";
|
||||
Persistent = true;
|
||||
};
|
8
home/programs/tealdeer/default.nix
Normal file
8
home/programs/tealdeer/default.nix
Normal file
@ -0,0 +1,8 @@
|
||||
{ pkgs, lib, ... }:
|
||||
{
|
||||
imports = [
|
||||
./auto-update-tldr-db.nix
|
||||
];
|
||||
|
||||
programs.tealdeer.enable = true;
|
||||
}
|
Loading…
Reference in New Issue
Block a user