mirror of
https://github.com/nix-community/home-manager.git
synced 2025-11-08 19:46:05 +01:00
26 lines
483 B
Nix
26 lines
483 B
Nix
{
|
|
programs.translate-shell = {
|
|
enable = true;
|
|
settings = {
|
|
verbose = true;
|
|
engine = "bing";
|
|
play = true;
|
|
hl = "en";
|
|
tl = [
|
|
"de"
|
|
"fr"
|
|
];
|
|
};
|
|
};
|
|
|
|
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
|
|
}''}
|
|
'';
|
|
}
|