espeak and http error codes

This commit is contained in:
Ingolf Wagner 2020-03-15 21:49:39 +08:00
parent 4c753b9f55
commit 6bcbb04045
No known key found for this signature in database
GPG key ID: 76BF5F1928B9618B
2 changed files with 12 additions and 5 deletions

View file

@ -222,6 +222,9 @@ in {
"ssh://gogs@git.ingolf-wagner.de:443/palo/LineagoOS-build.git" "ssh://gogs@git.ingolf-wagner.de:443/palo/LineagoOS-build.git"
"git@github.com:mrVanDalo/LineagoOS-build.git") "git@github.com:mrVanDalo/LineagoOS-build.git")
(sync-to-github "sync-http-errors"
"ssh://gogs@git.ingolf-wagner.de:443/palo/http-errors.git"
"git@github.com:mrVanDalo/http-errors.git")
]; ];
}; };
}; };

View file

@ -4,13 +4,17 @@ with lib;
let let
unstable = import <nixpkgs-unstable> {};
espeak = unstable.espeak;
# can't use bash aliases because programms will not pic it up # can't use bash aliases because programms will not pic it up
en_espeak = pkgs.writeShellScriptBin "en-speak" '' en_espeak = pkgs.writeShellScriptBin "en-speak" ''
exec ${pkgs.espeak}/bin/espeak \ exec ${espeak}/bin/espeak \
-v en\ -v en\
-s 145 \ -s 145 \
-p 23 \ -p 23 \
$@ "$@"
''; '';
# read from copyq # read from copyq
@ -20,11 +24,11 @@ let
# can't use bash aliases because programms will not pic it up # can't use bash aliases because programms will not pic it up
de_espeak = pkgs.writeShellScriptBin "de-speak" '' de_espeak = pkgs.writeShellScriptBin "de-speak" ''
exec ${pkgs.espeak}/bin/espeak \ exec ${espeak}/bin/espeak \
-v de\ -v de\
-s 143 \ -s 143 \
-p 20 \ -p 20 \
$@ "$@"
''; '';
# read from copyq # read from copyq
@ -41,7 +45,7 @@ in {
config = mkIf cfg.enable { config = mkIf cfg.enable {
environment.systemPackages = with pkgs; [ environment.systemPackages = [
espeak espeak
en_espeak en_espeak
en_read en_read