home/tealdeer: use upstream auto-updater
Evaluate machine configurations / eval (kasei) (push) Successful in 2m16s
Evaluate machine configurations / eval (xps16) (push) Successful in 2m14s
Evaluate machine configurations / eval (tsuki) (push) Successful in 2m44s

This commit is contained in:
2026-06-06 20:25:04 +09:00
parent 634bd6090c
commit 862e370ab1
4 changed files with 14 additions and 43 deletions
+1 -1
View File
@@ -63,7 +63,7 @@ in
./programs/sqlite.nix
./programs/ssh
./programs/taskwarrior.nix
./programs/tealdeer
./programs/tealdeer.nix
./programs/texlive.nix
./programs/thunderbird.nix
./programs/tmux
+13
View File
@@ -0,0 +1,13 @@
{ config, lib, ... }:
{
programs.tealdeer = {
enableAutoUpdates = true;
};
systemd.user.services = lib.mkIf config.services.tldr-update.enable {
tldr-update.Service = {
CPUSchedulingPolicy = "idle";
IOSchedulingClass = "idle";
};
};
}
@@ -1,34 +0,0 @@
{ config, pkgs, lib, ... }:
let
cfg = config.programs.tealdeer;
in
lib.mkIf cfg.enable {
systemd.user.services.update-tldr-db = {
Unit = {
Description = "Update tealdeer database";
};
Service = {
Type = "oneshot";
CPUSchedulingPolicy = "idle";
IOSchedulingClass = "idle";
ExecStart = "${lib.getExe pkgs.tealdeer} --update";
};
};
systemd.user.timers.update-tldr-db = {
Unit = {
Description = "Update tealdeer database";
};
Timer = {
Unit = "update-tldr-db.service";
OnCalendar = "daily";
Persistent = true;
};
Install = {
WantedBy = [ "timers.target" ];
};
};
}
-8
View File
@@ -1,8 +0,0 @@
{ pkgs, lib, ... }:
{
imports = [
./auto-update-tldr-db.nix
];
programs.tealdeer = { };
}