30 lines
481 B
Nix
Raw Normal View History

2025-05-13 14:26:22 +02:00
{
lib,
config,
pkgs,
...
}:
with lib;
let
cfg = config.modules.mathematica;
2025-11-14 14:32:52 +01:00
my-mathematica = pkgs.mathematica.overrideAttrs (old: {
force-rebuild = "1";
2025-05-13 14:26:22 +02:00
# TODO: Just use a generic name for the installer?
# source = ./Wolfram_14.2.1_LIN_Bndl.sh;
2025-11-14 14:32:52 +01:00
});
2025-05-13 14:26:22 +02:00
in
{
options.modules.mathematica = {
enable = mkEnableOption "mathematica";
};
config = mkIf cfg.enable {
home.packages = [
2025-11-14 14:32:52 +01:00
# pkgs.mathematica-cuda
2025-05-13 14:26:22 +02:00
my-mathematica
];
};
}