mirror of
https://github.com/nix-community/home-manager.git
synced 2025-03-10 18:57:22 +00:00
Adds `tldr-update` module for enabling automatic `tldr update` on a schedule. Adds option to `tealdeer` to enable integration with new `tldr-update` module.
21 lines
564 B
Nix
21 lines
564 B
Nix
{ config, ... }:
|
|
|
|
{
|
|
config = {
|
|
home.stateVersion = "24.11";
|
|
|
|
services.tldr-update = {
|
|
enable = true;
|
|
package = config.lib.test.mkStubPackage { outPath = "@tldr@"; };
|
|
period = "monthly";
|
|
};
|
|
|
|
nmt.script = ''
|
|
serviceFile=$(normalizeStorePaths home-files/.config/systemd/user/tldr-update.service)
|
|
assertFileContent "$serviceFile" ${./tldr-update.service}
|
|
|
|
timerFile=$(normalizeStorePaths home-files/.config/systemd/user/tldr-update.timer)
|
|
assertFileContent "$timerFile" ${./tldr-update.timer}
|
|
'';
|
|
};
|
|
}
|