Initial Test With Making PyCharm & Python Optional

This commit is contained in:
Tyler Kelley 2024-02-09 02:15:27 -06:00
parent 4815bf0a45
commit 30ac55f97f
4 changed files with 17 additions and 3 deletions

View File

@ -19,6 +19,7 @@
./nvidia.nix
./packages.nix
./polkit.nix
./python.nix
./printer.nix
./services.nix
./steam.nix

View File

@ -16,9 +16,8 @@ in {
v4l-utils ydotool wl-clipboard socat cowsay lsd lshw
pkg-config meson hugo gnumake ninja go nodejs symbola
noto-fonts-color-emoji material-icons brightnessctl
toybox virt-viewer jetbrains.pycharm-community-bin
swappy ripgrep appimage-run networkmanagerapplet
(pkgs.python3.withPackages my-python-packages)
toybox virt-viewer swappy ripgrep appimage-run
networkmanagerapplet
];
programs.steam.gamescopeSession.enable = true;

11
config/system/python.nix Normal file
View File

@ -0,0 +1,11 @@
{ pkgs, config, lib, ... }:
let
inherit (import ../../options.nix) python;
in lib.mkIf (python == true) {
environment.systemPackages = with pkgs; [
jetbrains.pycharm-community-bin
(pkgs.python3.withPackages my-python-packages)
];
}

View File

@ -62,4 +62,7 @@ in {
alacritty = true;
kitty = false;
# Enable Python & PyCharm
python = false;
}