Initial import

This commit is contained in:
Robert Helgesson 2017-01-07 19:16:26 +01:00
parent e4c63eb66a
commit d7d02c3ce8
No known key found for this signature in database
GPG key ID: C3DB11069E65DC86
26 changed files with 1749 additions and 0 deletions

View file

@ -0,0 +1,32 @@
{ config, lib, pkgs, ... }:
with lib;
let
cfg = config.programs.texlive;
in
{
options = {
programs.texlive = {
enable = mkEnableOption "Texlive";
extraPackages = mkOption {
default = self: {};
example = literalExample ''
tpkgs: { inherit (tpkgs) collection-fontsrecommended algorithms; }
'';
description = "Extra packages available to Texlive.";
};
};
};
config = mkIf cfg.enable {
home.packages = [
(pkgs.texlive.combine (cfg.extraPackages pkgs.texlive))
];
};
}