diff --git a/hosts/marpa/configuration.nix b/hosts/marpa/configuration.nix index 09aaf23..1c30859 100644 --- a/hosts/marpa/configuration.nix +++ b/hosts/marpa/configuration.nix @@ -76,6 +76,7 @@ enable = true; autostart = true; }; + languagetool.enable = true; }; users = { root.disablePassword = true; diff --git a/system/services/default.nix b/system/services/default.nix index 549e675..4e89106 100644 --- a/system/services/default.nix +++ b/system/services/default.nix @@ -4,6 +4,7 @@ ./endlessh.nix ./fwupd.nix ./jellyfin.nix + ./languagetool.nix ./plex.nix ./printing.nix ./ssh.nix diff --git a/system/services/languagetool.nix b/system/services/languagetool.nix new file mode 100644 index 0000000..ca5751c --- /dev/null +++ b/system/services/languagetool.nix @@ -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; + }; +}