1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-16 16:19:44 +01:00
home-manager/tests/modules/programs/pandoc/csl.nix
Kirill Elagin c47c350f65
pandoc: add new module
Add a module for pandoc that provides the following:

1. Setting default configuration options.
2. Installing templates.
3. Installing citation styles.
2022-01-22 21:16:50 +01:00

18 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}
'';
}