1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-23 19:49:45 +01:00
home-manager/tests/modules/programs/tealdeer/default-settings.nix
Nikita Pedorich 6b28ab2d79
tealdeer: add cache update activation script
Calls 'tldr --update' on home-manager switch
2024-01-24 08:21:24 +01:00

12 lines
263 B
Nix

{ config, ... }: {
config = {
programs.tealdeer = {
package = config.lib.test.mkStubPackage { name = "tldr"; };
enable = true;
};
nmt.script = ''
assertFileRegex activate '/nix/store/.*tealdeer.*/bin/tldr --update'
'';
};
}