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

@ -21,6 +21,7 @@
belgian-eid.enable = true;
docker.enable = true;
libvirt.enable = true;
languagetool.enable = true;
};
media = {
mpd.enable = true;

View file

@ -21,6 +21,7 @@
belgian-eid.enable = true;
docker.enable = true;
libvirt.enable = true;
languagetool.enable = true;
};
media = {
mpd.enable = true;

View file

@ -14,7 +14,7 @@
boot.tmp.useTmpfs = lib.mkDefault true;
# If not using tmpfs, which is naturally purged on reboot, we must clean it
# /tmp ourselves. /tmp should be volatile storage!
boot.tmp.cleanOnBoot = lib.mkDefault (!config.boot.tmpOnTmpfs);
boot.tmp.cleanOnBoot = lib.mkDefault (!config.boot.tmp.useTmpfs);
# Fix a security hole in place for backwards compatibility. See desc in
# nixpkgs/nixos/modules/system/boot/loader/systemd-boot/systemd-boot.nix

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 = "*";
};
};
}