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

31 lines
672 B
Nix
Raw Normal View History

{
pkgs,
config,
lib,
...
}:
2024-05-02 01:10:26 +00:00
let
cfg = config.aux.system.apps.writing;
compile-manuscript = pkgs.writeShellScriptBin "compile-manuscript" (
2024-12-06 16:16:58 +00:00
builtins.readFile ../../../../bin/compile-manuscript.sh
);
2024-05-02 01:10:26 +00:00
in
{
options = {
aux.system.apps.writing.enable = lib.mkEnableOption "Enables writing and editing tools";
};
2024-05-02 01:10:26 +00:00
config = lib.mkIf cfg.enable {
# Install packages for building ebooks
environment.systemPackages = with pkgs; [
haskellPackages.pandoc
haskellPackages.pandoc-cli
haskellPackages.pandoc-crossref
(texlive.combine { inherit (texlive) scheme-small draftwatermark; })
compile-manuscript
];
};
}