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

View File

@@ -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;

View File

@@ -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;

View File

@@ -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

View File

@@ -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;

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
];
};
}