2024-05-07 18:02:59 -04:00
|
|
|
{
|
|
|
|
pkgs,
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
...
|
|
|
|
}:
|
2024-05-01 21:10:26 -04:00
|
|
|
|
|
|
|
let
|
2024-06-24 11:38:28 -04:00
|
|
|
cfg = config.aux.system.apps.writing;
|
2024-05-01 21:10:26 -04:00
|
|
|
in
|
|
|
|
{
|
2024-05-07 18:02:59 -04:00
|
|
|
options = {
|
2024-09-28 17:22:11 -04:00
|
|
|
aux.system.apps.writing.enable = lib.mkEnableOption "Enables writing and editing tools";
|
2024-05-07 18:02:59 -04:00
|
|
|
};
|
2024-05-01 21:10:26 -04:00
|
|
|
|
2024-06-19 14:00:17 -04:00
|
|
|
config = lib.mkIf cfg.enable {
|
2024-05-07 18:02:59 -04:00
|
|
|
# Install packages for building ebooks
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
haskellPackages.pandoc
|
|
|
|
haskellPackages.pandoc-cli
|
|
|
|
haskellPackages.pandoc-crossref
|
|
|
|
texliveSmall
|
|
|
|
];
|
|
|
|
};
|
|
|
|
}
|