translate-shell: add module (#3659)
This commit is contained in:
parent
b365342adb
commit
fa720861b5
6 changed files with 85 additions and 0 deletions
1
tests/modules/programs/translate-shell/default.nix
Normal file
1
tests/modules/programs/translate-shell/default.nix
Normal file
|
|
@ -0,0 +1 @@
|
|||
{ translate-shell = ./translate-shell.nix; }
|
||||
27
tests/modules/programs/translate-shell/translate-shell.nix
Normal file
27
tests/modules/programs/translate-shell/translate-shell.nix
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
{ ... }:
|
||||
|
||||
{
|
||||
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
|
||||
}''}
|
||||
'';
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue