Files
dev/configs/nixos/modules/shell/python.nix

22 lines
462 B
Nix

{
config,
lib,
pkgs,
...
}:
# Python tools for the primary user's shell environment.
let
user = config.user.name;
in
{
options.modules.shell.python.enable =
lib.mkEnableOption "Python tools for the primary user's shell environment";
config = lib.mkIf config.modules.shell.python.enable {
home-manager.users.${user}.home = {
sessionVariables.PYTHON_TOOLCHAIN_ROOT = "${pkgs.python3}";
packages = [ pkgs.python3 ];
};
};
}