feat(pandoc): add enable option

This commit is contained in:
2026-05-22 09:53:14 +02:00
parent 0826ac78e1
commit bc2f0477ca
4 changed files with 24 additions and 6 deletions

View File

@@ -1,8 +1,23 @@
{ pkgs, ... }:
{
home.packages = with pkgs; [
haskellPackages.pandoc-crossref
pandoc
texliveSmall
];
config,
lib,
pkgs,
...
}:
let
cfg = config.pandoc;
in
{
options.pandoc = {
enable = lib.mkEnableOption "pandoc";
};
config = lib.mkIf cfg.enable {
home.packages = with pkgs; [
haskellPackages.pandoc-crossref
pandoc
texliveSmall
];
};
}