Modularize dev/python.nix
This commit is contained in:
parent
1eeb7af2bb
commit
953c4c450b
|
@ -11,7 +11,7 @@
|
||||||
# ./latex.nix
|
# ./latex.nix
|
||||||
# ./love2d.nix
|
# ./love2d.nix
|
||||||
# ./node.nix
|
# ./node.nix
|
||||||
# ./python.nix
|
./python.nix
|
||||||
./rust.nix
|
./rust.nix
|
||||||
./scala.nix
|
./scala.nix
|
||||||
# ./unity3d.nix
|
# ./unity3d.nix
|
||||||
|
|
|
@ -4,8 +4,17 @@
|
||||||
# me. The Py2->3 transition make trainwrecks jealous. But SciPy, NumPy, iPython
|
# me. The Py2->3 transition make trainwrecks jealous. But SciPy, NumPy, iPython
|
||||||
# and Jupyter can have my babies. Every single one.
|
# and Jupyter can have my babies. Every single one.
|
||||||
|
|
||||||
{ lib, pkgs, ... }:
|
{ config, options, lib, pkgs, ... }:
|
||||||
|
with lib;
|
||||||
{
|
{
|
||||||
|
options.modules.dev.python = {
|
||||||
|
enable = mkOption {
|
||||||
|
type = types.bool;
|
||||||
|
default = false;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
config = mkIf config.modules.dev.python.enable {
|
||||||
my = {
|
my = {
|
||||||
packages = with pkgs; [
|
packages = with pkgs; [
|
||||||
python37
|
python37
|
||||||
|
@ -35,4 +44,5 @@
|
||||||
alias.ipy = "ipython --no-banner";
|
alias.ipy = "ipython --no-banner";
|
||||||
alias.ipylab = "ipython --pylab=qt5 --no-banner";
|
alias.ipylab = "ipython --pylab=qt5 --no-banner";
|
||||||
};
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue