Add languagetool service

This commit is contained in:
Paul-Henri Froidmont 2023-07-10 21:40:21 +02:00
parent c8f66f7364
commit 7f499f439e
Signed by: phfroidmont
GPG key ID: BE948AFD7E7873BE
4 changed files with 19 additions and 1 deletions

View file

@ -0,0 +1,16 @@
{ config, lib, pkgs, ... }:
with lib;
with lib.my;
let cfg = config.modules.services.languagetool;
in {
options.modules.services.languagetool = { enable = mkBoolOpt false; };
config = mkIf cfg.enable {
services.languagetool = {
enable = true;
allowOrigin = "*";
};
};
}