From f5ed623d53adf0b250fb1f4ee390b6b21373b024 Mon Sep 17 00:00:00 2001 From: Hektor Misplon Date: Sun, 22 Feb 2026 16:16:17 +0100 Subject: [PATCH] refactor: extract 'pandoc' module --- home/hosts/andromache/default.nix | 2 ++ home/hosts/astyanax/default.nix | 2 ++ home/hosts/packages.nix | 2 -- home/hosts/work/default.nix | 2 ++ home/modules/pandoc.nix | 20 ++++++++++++++++++++ 5 files changed, 26 insertions(+), 2 deletions(-) create mode 100644 home/modules/pandoc.nix diff --git a/home/hosts/andromache/default.nix b/home/hosts/andromache/default.nix index 09922d7..a310f63 100644 --- a/home/hosts/andromache/default.nix +++ b/home/hosts/andromache/default.nix @@ -23,6 +23,7 @@ in ../../modules/kitty.nix ../../modules/music ../../modules/nvim.nix + ../../modules/pandoc.nix ../../modules/ssh.nix ../../modules/taskwarrior.nix ../../modules/keepassxc.nix @@ -46,6 +47,7 @@ in cloud.hetzner.enable = true; comms.signal.enable = true; github.enable = true; + pandoc.enable = true; shell.bash = { enable = true; diff --git a/home/hosts/astyanax/default.nix b/home/hosts/astyanax/default.nix index bccabf6..b169bbe 100644 --- a/home/hosts/astyanax/default.nix +++ b/home/hosts/astyanax/default.nix @@ -23,6 +23,7 @@ in ../../modules/music ../../modules/nfc ../../modules/nvim.nix + ../../modules/pandoc.nix ../../modules/ssh.nix ../../modules/taskwarrior.nix ../../modules/keepassxc.nix @@ -45,6 +46,7 @@ in comms.signal.enable = true; github.enable = true; nfc.proxmark3.enable = true; + pandoc.enable = true; shell.bash = { enable = true; diff --git a/home/hosts/packages.nix b/home/hosts/packages.nix index 1360adc..ee19410 100644 --- a/home/hosts/packages.nix +++ b/home/hosts/packages.nix @@ -6,14 +6,12 @@ with pkgs; entr feh fzf - haskellPackages.pandoc-crossref htop jq nixfmt-rfc-style nmap nodejs_24 nvimpager - pandoc parallel pass pnpm diff --git a/home/hosts/work/default.nix b/home/hosts/work/default.nix index 95742c1..61cffb4 100644 --- a/home/hosts/work/default.nix +++ b/home/hosts/work/default.nix @@ -26,6 +26,7 @@ in ../../modules/keepassxc.nix ../../modules/kitty.nix ../../modules/nvim.nix + ../../modules/pandoc.nix ../../modules/browser ../../modules/shell ../../modules/music @@ -75,6 +76,7 @@ in ai-tools.claude-code.enable = true; github.enable = true; gitlab.enable = true; + pandoc.enable = true; shell.bash.enable = true; starship.enable = true; diff --git a/home/modules/pandoc.nix b/home/modules/pandoc.nix new file mode 100644 index 0000000..2bcc706 --- /dev/null +++ b/home/modules/pandoc.nix @@ -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 + ]; + }; +}