21 lines
270 B
Nix
21 lines
270 B
Nix
{
|
|
lib,
|
|
config,
|
|
pkgs,
|
|
...
|
|
}:
|
|
|
|
let
|
|
cfg = config.pandoc;
|
|
in
|
|
{
|
|
options.pandoc.enable = lib.mkEnableOption "pandoc with crossref";
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
home.packages = with pkgs; [
|
|
pandoc
|
|
haskellPackages.pandoc-crossref
|
|
];
|
|
};
|
|
}
|