1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-01 16:59:43 +01:00
home-manager/tests/modules/programs/translate-shell/translate-shell.nix

28 lines
508 B
Nix
Raw Normal View History

2023-05-11 11:21:18 +02:00
{ ... }:
{
programs.translate-shell = {
enable = true;
settings = {
verbose = true;
engine = "bing";
play = true;
hl = "en";
tl = [ "de" "fr" ];
};
};
test.stubs.translate-shell = { };
nmt.script = ''
assertFileContent home-files/.config/translate-shell/init.trans \
${builtins.toFile "translate-shell-expected-settings.trans" ''
{:engine "bing"
:hl "en"
:play true
:tl [ "de" "fr" ]
:verbose true
}''}
'';
}