mirror of
https://github.com/nix-community/home-manager
synced 2024-12-27 04:09:47 +01:00
c47c350f65
Add a module for pandoc that provides the following: 1. Setting default configuration options. 2. Installing templates. 3. Installing citation styles.
18 lines
376 B
Nix
18 lines
376 B
Nix
{ config, ... }:
|
|
|
|
{
|
|
programs.pandoc = {
|
|
enable = true;
|
|
|
|
templates = { "default.latex" = ./template.latex; };
|
|
};
|
|
|
|
test.stubs.pandoc = import ./stub.nix;
|
|
|
|
nmt.script = ''
|
|
assertFileExists home-files/.local/share/pandoc/templates/default.latex
|
|
assertFileContent home-files/.local/share/pandoc/templates/default.latex \
|
|
${./template.latex}
|
|
'';
|
|
}
|
|
|