26 lines
466 B
Nix
26 lines
466 B
Nix
{
|
|
pkgs,
|
|
config,
|
|
lib,
|
|
...
|
|
}:
|
|
|
|
let
|
|
cfg = config.aux.system.apps.writing;
|
|
in
|
|
{
|
|
options = {
|
|
aux.system.apps.writing.enable = lib.mkEnableOption (lib.mdDoc "Enables writing and editing tools");
|
|
};
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
# Install packages for building ebooks
|
|
environment.systemPackages = with pkgs; [
|
|
haskellPackages.pandoc
|
|
haskellPackages.pandoc-cli
|
|
haskellPackages.pandoc-crossref
|
|
texliveSmall
|
|
];
|
|
};
|
|
}
|