Skip to content

Commit

Permalink
feat(ide): added python IDE
Browse files Browse the repository at this point in the history
  • Loading branch information
Wittano committed Aug 4, 2024
1 parent 38437b9 commit 6c151e1
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 27 deletions.
44 changes: 20 additions & 24 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion hosts/pc/configuration.nix
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ with lib.my;
games.enable = true;
mihoyo.enable = true;
};
dev.lang.ides = [ "go" "fork" ];
dev.lang.ides = [ "go" "fork" "python" ];
hardware = rec {
grub.enableMultiBoot = true;
sound.enable = true;
Expand Down
7 changes: 5 additions & 2 deletions modules/dev/ide.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,16 @@ let
let
mkExtraConfig = ide: mkMerge [
{
home-manager.users.wittano.home.packages = [ ide.package ];
home-manager.users.wittano.home.packages = mkIf (ide ? package) [ ide.package ];
}
(ide.extraConfig or { })
];
in
addProjectDirField (with unstable.jetbrains; rec {
python.package = pycharm-professional;
python = let forkConfig = mkExtraConfig fork; in {
package = pycharm-professional;
extraConfig = forkConfig;
};
cpp.package = clion;
zig = cpp;
go.package = goland;
Expand Down

0 comments on commit 6c151e1

Please sign in to comment.