refactor: extract 'pandoc' module
This commit is contained in:
@@ -23,6 +23,7 @@ in
|
|||||||
../../modules/kitty.nix
|
../../modules/kitty.nix
|
||||||
../../modules/music
|
../../modules/music
|
||||||
../../modules/nvim.nix
|
../../modules/nvim.nix
|
||||||
|
../../modules/pandoc.nix
|
||||||
../../modules/ssh.nix
|
../../modules/ssh.nix
|
||||||
../../modules/taskwarrior.nix
|
../../modules/taskwarrior.nix
|
||||||
../../modules/keepassxc.nix
|
../../modules/keepassxc.nix
|
||||||
@@ -46,6 +47,7 @@ in
|
|||||||
cloud.hetzner.enable = true;
|
cloud.hetzner.enable = true;
|
||||||
comms.signal.enable = true;
|
comms.signal.enable = true;
|
||||||
github.enable = true;
|
github.enable = true;
|
||||||
|
pandoc.enable = true;
|
||||||
|
|
||||||
shell.bash = {
|
shell.bash = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|||||||
@@ -23,6 +23,7 @@ in
|
|||||||
../../modules/music
|
../../modules/music
|
||||||
../../modules/nfc
|
../../modules/nfc
|
||||||
../../modules/nvim.nix
|
../../modules/nvim.nix
|
||||||
|
../../modules/pandoc.nix
|
||||||
../../modules/ssh.nix
|
../../modules/ssh.nix
|
||||||
../../modules/taskwarrior.nix
|
../../modules/taskwarrior.nix
|
||||||
../../modules/keepassxc.nix
|
../../modules/keepassxc.nix
|
||||||
@@ -45,6 +46,7 @@ in
|
|||||||
comms.signal.enable = true;
|
comms.signal.enable = true;
|
||||||
github.enable = true;
|
github.enable = true;
|
||||||
nfc.proxmark3.enable = true;
|
nfc.proxmark3.enable = true;
|
||||||
|
pandoc.enable = true;
|
||||||
|
|
||||||
shell.bash = {
|
shell.bash = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|||||||
@@ -6,14 +6,12 @@ with pkgs;
|
|||||||
entr
|
entr
|
||||||
feh
|
feh
|
||||||
fzf
|
fzf
|
||||||
haskellPackages.pandoc-crossref
|
|
||||||
htop
|
htop
|
||||||
jq
|
jq
|
||||||
nixfmt-rfc-style
|
nixfmt-rfc-style
|
||||||
nmap
|
nmap
|
||||||
nodejs_24
|
nodejs_24
|
||||||
nvimpager
|
nvimpager
|
||||||
pandoc
|
|
||||||
parallel
|
parallel
|
||||||
pass
|
pass
|
||||||
pnpm
|
pnpm
|
||||||
|
|||||||
@@ -26,6 +26,7 @@ in
|
|||||||
../../modules/keepassxc.nix
|
../../modules/keepassxc.nix
|
||||||
../../modules/kitty.nix
|
../../modules/kitty.nix
|
||||||
../../modules/nvim.nix
|
../../modules/nvim.nix
|
||||||
|
../../modules/pandoc.nix
|
||||||
../../modules/browser
|
../../modules/browser
|
||||||
../../modules/shell
|
../../modules/shell
|
||||||
../../modules/music
|
../../modules/music
|
||||||
@@ -75,6 +76,7 @@ in
|
|||||||
ai-tools.claude-code.enable = true;
|
ai-tools.claude-code.enable = true;
|
||||||
github.enable = true;
|
github.enable = true;
|
||||||
gitlab.enable = true;
|
gitlab.enable = true;
|
||||||
|
pandoc.enable = true;
|
||||||
|
|
||||||
shell.bash.enable = true;
|
shell.bash.enable = true;
|
||||||
starship.enable = true;
|
starship.enable = true;
|
||||||
|
|||||||
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