Add local libretranslate

Very basic via systemd, no module found or created.
This commit is contained in:
Daniel Siepmann 2023-10-10 08:47:03 +02:00
parent cdeeb0f769
commit 791eca8ee8
Signed by: Daniel Siepmann
GPG key ID: 33D6629915560EF4
2 changed files with 21 additions and 0 deletions

View file

@ -0,0 +1,18 @@
{ pkgs }:
{
Unit = {
Description = "LibreTrnalsate";
PartOf = "graphical-session.target";
};
Service = {
ExecStart = "${pkgs.libretranslate}/bin/libretranslate --load-only de,en --disable-files-translation";
};
Install = {
WantedBy = [
"hm-graphical-session.target"
];
};
}

View file

@ -5,6 +5,9 @@
batteryicon = import ./services/batteryicon.nix {
inherit pkgs;
};
libretranslate = import ./services/libretranslate.nix {
inherit pkgs;
};
};
tmpfiles.rules = [