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

22 lines
564 B
Nix
Raw Normal View History

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