refactor: extract 'pandoc' module

This commit is contained in:
hektor committed 2026-03-11 21:25:32 +01:00
1 parent 27b6af253f
commit f9ea95f346
5 files changed
+26 -2

No files matched your search

+20
View File
@@ -0,0 +1,20 @@
{
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
];
};
}