mirror of
https://github.com/kaesaecracker/nixos-configuration.git
synced 2025-01-18 18:40:14 +01:00
21 lines
342 B
Nix
21 lines
342 B
Nix
{
|
|
config,
|
|
pkgs,
|
|
lib,
|
|
...
|
|
}: let
|
|
isEnabled = config.my.desktop.enableLaTeX;
|
|
in {
|
|
options.my.desktop.enableLaTeX = lib.mkEnableOption "LaTeX tools and IDE";
|
|
|
|
config = lib.mkIf isEnabled {
|
|
my.desktop.enable = true;
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
fontconfig
|
|
texliveFull
|
|
texstudio
|
|
];
|
|
};
|
|
}
|