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

@@ -58,6 +58,7 @@
git.github.enable = true; git.github.enable = true;
shell.bash.aliases.lang-js = true; shell.bash.aliases.lang-js = true;
shell.bash.addBinToPath = true; shell.bash.addBinToPath = true;
pandoc.enable = true;
photography.enable = true; photography.enable = true;
torrenting.enable = true; torrenting.enable = true;
my.yubikey.enable = true; my.yubikey.enable = true;

View File

@@ -56,6 +56,7 @@
shell.bash.addBinToPath = true; shell.bash.addBinToPath = true;
my.yubikey.enable = true; my.yubikey.enable = true;
nfc.enable = true; nfc.enable = true;
pandoc.enable = true;
programs = { programs = {
home-manager.enable = true; home-manager.enable = true;

View File

@@ -65,6 +65,7 @@
browser.primary = "firefox"; browser.primary = "firefox";
my.dconf.enable = true; my.dconf.enable = true;
pandoc.enable = true;
browser.secondary = "chromium"; browser.secondary = "chromium";
cloud.azure.enable = true; cloud.azure.enable = true;
comms.signal.enable = true; comms.signal.enable = true;

View File

@@ -1,8 +1,23 @@
{ pkgs, ... }:
{ {
home.packages = with pkgs; [ config,
haskellPackages.pandoc-crossref lib,
pandoc pkgs,
texliveSmall ...
]; }:
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
];
};
} }