mirror of
https://github.com/nix-community/home-manager.git
synced 2025-03-10 18:57:22 +00:00
22 lines
564 B
Nix
22 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}
|
||
|
'';
|
||
|
};
|
||
|
}
|