refactor: extract 'pandoc' module

This commit is contained in:
2026-02-22 16:16:17 +01:00
parent d30fa3922b
commit f5ed623d53
5 changed files with 26 additions and 2 deletions

20
home/modules/pandoc.nix Normal file
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
];
};
}