32 lines
481 B
Nix
Raw Normal View History

2025-01-30 19:05:44 +01:00
{
lib,
config,
pkgs,
...
}:
with lib;
let
cfg = config.modules.mathematica;
2025-02-12 04:06:53 +01:00
my-mathematica = pkgs.mathematica.override {
# TODO: Just use a generic name for the installer?
2025-05-09 14:59:38 +02:00
# source = ./Wolfram_14.2.1_LIN_Bndl.sh;
2025-02-12 04:06:53 +01:00
};
2025-01-30 19:05:44 +01:00
in
{
options.modules.mathematica = {
enable = mkEnableOption "mathematica";
};
config = mkIf cfg.enable {
2025-01-30 19:06:49 +01:00
modules.unfree.allowedPackages = [
"mathematica"
];
2025-02-12 04:06:53 +01:00
home.packages = [
my-mathematica
2025-01-30 19:05:44 +01:00
];
};
}