mirror of
https://github.com/nix-community/home-manager
synced 2024-08-21 11:36:29 +02:00
Add a module for pandoc that provides the following: 1. Setting default configuration options. 2. Installing templates. 3. Installing citation styles.
19 lines
340 B
Nix
19 lines
340 B
Nix
{ config, ... }:
|
|
|
|
{
|
|
programs.pandoc = {
|
|
enable = true;
|
|
|
|
citationStyles = [ ./example.csl ];
|
|
};
|
|
|
|
test.stubs.pandoc = import ./stub.nix;
|
|
|
|
nmt.script = ''
|
|
assertFileExists home-files/.local/share/pandoc/csl/example.csl
|
|
assertFileContent home-files/.local/share/pandoc/csl/example.csl \
|
|
${./example.csl}
|
|
'';
|
|
}
|
|
|