Add languagetool service
This commit is contained in:
parent
c8f66f7364
commit
7f499f439e
4 changed files with 19 additions and 1 deletions
|
|
@ -21,6 +21,7 @@
|
||||||
belgian-eid.enable = true;
|
belgian-eid.enable = true;
|
||||||
docker.enable = true;
|
docker.enable = true;
|
||||||
libvirt.enable = true;
|
libvirt.enable = true;
|
||||||
|
languagetool.enable = true;
|
||||||
};
|
};
|
||||||
media = {
|
media = {
|
||||||
mpd.enable = true;
|
mpd.enable = true;
|
||||||
|
|
|
||||||
|
|
@ -21,6 +21,7 @@
|
||||||
belgian-eid.enable = true;
|
belgian-eid.enable = true;
|
||||||
docker.enable = true;
|
docker.enable = true;
|
||||||
libvirt.enable = true;
|
libvirt.enable = true;
|
||||||
|
languagetool.enable = true;
|
||||||
};
|
};
|
||||||
media = {
|
media = {
|
||||||
mpd.enable = true;
|
mpd.enable = true;
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@
|
||||||
boot.tmp.useTmpfs = lib.mkDefault true;
|
boot.tmp.useTmpfs = lib.mkDefault true;
|
||||||
# If not using tmpfs, which is naturally purged on reboot, we must clean it
|
# If not using tmpfs, which is naturally purged on reboot, we must clean it
|
||||||
# /tmp ourselves. /tmp should be volatile storage!
|
# /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
|
# Fix a security hole in place for backwards compatibility. See desc in
|
||||||
# nixpkgs/nixos/modules/system/boot/loader/systemd-boot/systemd-boot.nix
|
# nixpkgs/nixos/modules/system/boot/loader/systemd-boot/systemd-boot.nix
|
||||||
|
|
|
||||||
16
modules/services/languagetool.nix
Normal file
16
modules/services/languagetool.nix
Normal 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 = "*";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue