2025-05-09 15:27:44 +02:00

32 lines
481 B
Nix

{
lib,
config,
pkgs,
...
}:
with lib;
let
cfg = config.modules.mathematica;
my-mathematica = pkgs.mathematica.override {
# TODO: Just use a generic name for the installer?
# source = ./Wolfram_14.2.1_LIN_Bndl.sh;
};
in
{
options.modules.mathematica = {
enable = mkEnableOption "mathematica";
};
config = mkIf cfg.enable {
modules.unfree.allowedPackages = [
"mathematica"
];
home.packages = [
my-mathematica
];
};
}