feat(languagetool): add languagetool service to marpa

This commit is contained in:
Lucien Cartier-Tilet 2025-09-03 11:45:12 +02:00
parent df782e7507
commit 7b56ec9f1e
3 changed files with 22 additions and 0 deletions

View File

@ -76,6 +76,7 @@
enable = true;
autostart = true;
};
languagetool.enable = true;
};
users = {
root.disablePassword = true;

View File

@ -4,6 +4,7 @@
./endlessh.nix
./fwupd.nix
./jellyfin.nix
./languagetool.nix
./plex.nix
./printing.nix
./ssh.nix

View File

@ -0,0 +1,20 @@
{
config,
lib,
...
}:
with lib; let
cfg = config.mySystem.services.languagetool;
in {
options.mySystem.services.languagetool = {
enable = mkEnableOption "Enables languagetool";
port = mkOption {
type = types.port;
default = 8081;
example = 80;
};
};
config.services.languagetool = mkIf cfg.enable {
inherit (cfg) enable port;
};
}