refactor: extract 'pandoc' module
This commit is contained in:
20
home/modules/pandoc.nix
Normal file
20
home/modules/pandoc.nix
Normal 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
|
||||
];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user