1
0
Fork 0
nix-configuration/modules/apps/writing.nix

35 lines
639 B
Nix
Raw Normal View History

{
pkgs,
config,
lib,
...
}:
2024-05-02 01:10:26 +00:00
let
cfg = config.host.apps.writing;
2024-05-02 01:10:26 +00:00
in
with lib;
{
options = {
host.apps.writing.enable = mkEnableOption (mdDoc "Enables writing and editing tools");
};
2024-05-02 01:10:26 +00:00
config = mkIf cfg.enable {
# Install packages for building ebooks
environment.systemPackages = with pkgs; [
haskellPackages.pandoc
haskellPackages.pandoc-cli
haskellPackages.pandoc-crossref
texliveSmall
];
2024-05-02 01:10:26 +00:00
# Spelling and grammer checking: hosted on localhost:8081
services.languagetool = {
enable = true;
port = 8090;
public = false;
allowOrigin = "*";
};
};
}