home/tealdeer: configure db fetch timer
This commit is contained in:
parent
7f3dbd1d4c
commit
587791f5f8
@ -19,6 +19,7 @@ in {
|
||||
./programs/less.nix
|
||||
./programs/neovim.nix
|
||||
./programs/nix-index
|
||||
./programs/tealdeer.nix
|
||||
./programs/tmux.nix
|
||||
./programs/zsh
|
||||
|
||||
@ -153,10 +154,6 @@ in {
|
||||
enable = true;
|
||||
# packageSet = pkgs.texlive.combined.scheme-medium;
|
||||
};
|
||||
tealdeer = {
|
||||
enable = true;
|
||||
settings.updates.auto_update = true;
|
||||
};
|
||||
zoxide.enable = true;
|
||||
};
|
||||
|
||||
|
33
home/programs/tealdeer.nix
Normal file
33
home/programs/tealdeer.nix
Normal file
@ -0,0 +1,33 @@
|
||||
{ pkgs, lib, ... }:
|
||||
{
|
||||
programs.tealdeer.enable = true;
|
||||
|
||||
systemd.user.services.tealdeer-refresh = {
|
||||
Unit = {
|
||||
Description = "Refresh tealdeer contents";
|
||||
};
|
||||
|
||||
Service = {
|
||||
Type = "oneshot";
|
||||
CPUSchedulingPolicy = "idle";
|
||||
IOSchedulingClass = "idle";
|
||||
ExecStart = "${lib.getExe pkgs.tealdeer} --update";
|
||||
};
|
||||
};
|
||||
|
||||
systemd.user.timers.tealdeer-refresh = {
|
||||
Unit = {
|
||||
Description = "Refresh tealdeer contents";
|
||||
};
|
||||
|
||||
Timer = {
|
||||
Unit = "tealdeer-refresh.service";
|
||||
OnCalendar = "daily";
|
||||
Persistent = true;
|
||||
};
|
||||
|
||||
Install = {
|
||||
WantedBy = [ "timers.target" ];
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user