fork/home-manager

git clone https://git.julia.blue/fork/home-manager

Mario Rodastranslate-shell: add module (#3659)fa720861

master
508 B27 linesraw
1{ ... }:
2
3{
4  programs.translate-shell = {
5    enable = true;
6    settings = {
7      verbose = true;
8      engine = "bing";
9      play = true;
10      hl = "en";
11      tl = [ "de" "fr" ];
12    };
13  };
14
15  test.stubs.translate-shell = { };
16
17  nmt.script = ''
18    assertFileContent home-files/.config/translate-shell/init.trans \
19    ${builtins.toFile "translate-shell-expected-settings.trans" ''
20      {:engine "bing"
21      :hl "en"
22      :play true
23      :tl [ "de" "fr" ]
24      :verbose true
25      }''}
26  '';
27}