mirror of
https://github.com/ellmau/nixos.git
synced 2025-12-19 09:29:36 +01:00
25 lines
516 B
Nix
25 lines
516 B
Nix
{ config, lib, pkgs }:
|
|
with lib; {
|
|
options.elss.texlive = {
|
|
enable = mkEnableOption "configure texlife on the system";
|
|
|
|
package = mkOption {
|
|
type = types.package;
|
|
default = pkgs.texlive.combined.scheme-full;
|
|
description = ''
|
|
This option specifies which texlive package shall be installed
|
|
'';
|
|
};
|
|
};
|
|
|
|
config =
|
|
let
|
|
cfg = config.elss.texlive;
|
|
in
|
|
mkIf cfg.enable {
|
|
environment.systemPackages = [
|
|
cfg.package
|
|
];
|
|
};
|
|
}
|