1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-03-10 18:57:22 +00:00
home-manager/tests/modules/services/tldr-update/tldr-update.nix
Perchun Pak b0bd29bb4b
tldr-update: init (#6401)
Adds `tldr-update` module for enabling automatic `tldr update` on a schedule.
Adds option to `tealdeer` to enable integration with new `tldr-update` module.
2025-02-10 08:34:12 -06:00

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}
'';
};
}