feat(pandoc): add enable option
This commit is contained in:
@@ -58,6 +58,7 @@
|
|||||||
git.github.enable = true;
|
git.github.enable = true;
|
||||||
shell.bash.aliases.lang-js = true;
|
shell.bash.aliases.lang-js = true;
|
||||||
shell.bash.addBinToPath = true;
|
shell.bash.addBinToPath = true;
|
||||||
|
pandoc.enable = true;
|
||||||
photography.enable = true;
|
photography.enable = true;
|
||||||
torrenting.enable = true;
|
torrenting.enable = true;
|
||||||
my.yubikey.enable = true;
|
my.yubikey.enable = true;
|
||||||
|
|||||||
@@ -56,6 +56,7 @@
|
|||||||
shell.bash.addBinToPath = true;
|
shell.bash.addBinToPath = true;
|
||||||
my.yubikey.enable = true;
|
my.yubikey.enable = true;
|
||||||
nfc.enable = true;
|
nfc.enable = true;
|
||||||
|
pandoc.enable = true;
|
||||||
|
|
||||||
programs = {
|
programs = {
|
||||||
home-manager.enable = true;
|
home-manager.enable = true;
|
||||||
|
|||||||
@@ -65,6 +65,7 @@
|
|||||||
|
|
||||||
browser.primary = "firefox";
|
browser.primary = "firefox";
|
||||||
my.dconf.enable = true;
|
my.dconf.enable = true;
|
||||||
|
pandoc.enable = true;
|
||||||
browser.secondary = "chromium";
|
browser.secondary = "chromium";
|
||||||
cloud.azure.enable = true;
|
cloud.azure.enable = true;
|
||||||
comms.signal.enable = true;
|
comms.signal.enable = true;
|
||||||
|
|||||||
@@ -1,8 +1,23 @@
|
|||||||
{ pkgs, ... }:
|
|
||||||
{
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
|
||||||
|
let
|
||||||
|
cfg = config.pandoc;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
options.pandoc = {
|
||||||
|
enable = lib.mkEnableOption "pandoc";
|
||||||
|
};
|
||||||
|
|
||||||
|
config = lib.mkIf cfg.enable {
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
haskellPackages.pandoc-crossref
|
haskellPackages.pandoc-crossref
|
||||||
pandoc
|
pandoc
|
||||||
texliveSmall
|
texliveSmall
|
||||||
];
|
];
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user