mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-21 09:58:26 +00:00
Add an unoconv listener to joex nixos module
This commit is contained in:
@ -604,20 +604,35 @@ in {
|
|||||||
description = "Docspell user";
|
description = "Docspell user";
|
||||||
};
|
};
|
||||||
|
|
||||||
systemd.services.docspell-joex =
|
# Setting up a unoconv listener to improve conversion performance
|
||||||
let
|
systemd.services.unoconv =
|
||||||
cmd = "${pkgs.docspell.joex}/bin/docspell-joex ${configFile}";
|
let
|
||||||
in
|
cmd = "${pkgs.unoconv}/bin/unoconv --listener -v";
|
||||||
{
|
in
|
||||||
description = "Docspell Joex";
|
{
|
||||||
after = [ "networking.target" ];
|
description = "Unoconv Listener";
|
||||||
wantedBy = [ "multi-user.target" ];
|
after = [ "networking.target" ];
|
||||||
path = [ pkgs.gawk ];
|
wantedBy = [ "multi-user.target" ];
|
||||||
preStart = ''
|
path = [ pkgs.unoconv ];
|
||||||
'';
|
serviceConfig = {
|
||||||
|
Restart = "always";
|
||||||
|
};
|
||||||
|
script =
|
||||||
|
"${pkgs.su}/bin/su -s ${pkgs.bash}/bin/sh ${user} -c \"${cmd}\"";
|
||||||
|
};
|
||||||
|
|
||||||
script =
|
systemd.services.docspell-joex =
|
||||||
"${pkgs.su}/bin/su -s ${pkgs.bash}/bin/sh ${user} -c \"${cmd}\"";
|
let
|
||||||
};
|
cmd = "${pkgs.docspell.joex}/bin/docspell-joex ${configFile}";
|
||||||
|
in
|
||||||
|
{
|
||||||
|
description = "Docspell Joex";
|
||||||
|
after = [ "networking.target" ];
|
||||||
|
wantedBy = [ "multi-user.target" ];
|
||||||
|
path = [ pkgs.gawk ];
|
||||||
|
|
||||||
|
script =
|
||||||
|
"${pkgs.su}/bin/su -s ${pkgs.bash}/bin/sh ${user} -c \"${cmd}\"";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user