add mpro
Signed-off-by: Harald Hoyer <harald@hoyer.xyz>
This commit is contained in:
parent
dd3dd53e11
commit
5e2d3a6ce4
25 changed files with 665 additions and 20 deletions
22
modules/darwin/tools/python/default.nix
Normal file
22
modules/darwin/tools/python/default.nix
Normal file
|
@ -0,0 +1,22 @@
|
|||
{ options, config, lib, pkgs, ... }:
|
||||
|
||||
with lib;
|
||||
with lib.plusultra;
|
||||
let cfg = config.plusultra.tools.python;
|
||||
in
|
||||
{
|
||||
options.plusultra.tools.python = with types; {
|
||||
enable = mkBoolOpt false "Whether or not to enable Python.";
|
||||
};
|
||||
|
||||
config =
|
||||
mkIf cfg.enable {
|
||||
environment.systemPackages = with pkgs; [
|
||||
(python311.withPackages (ps:
|
||||
with ps; [
|
||||
numpy
|
||||
])
|
||||
)
|
||||
];
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue