Add local libretranslate
Very basic via systemd, no module found or created.
This commit is contained in:
parent
cdeeb0f769
commit
791eca8ee8
18
home/services/libretranslate.nix
Normal file
18
home/services/libretranslate.nix
Normal 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"
|
||||
];
|
||||
};
|
||||
}
|
|
@ -5,6 +5,9 @@
|
|||
batteryicon = import ./services/batteryicon.nix {
|
||||
inherit pkgs;
|
||||
};
|
||||
libretranslate = import ./services/libretranslate.nix {
|
||||
inherit pkgs;
|
||||
};
|
||||
};
|
||||
|
||||
tmpfiles.rules = [
|
||||
|
|
Loading…
Reference in a new issue