From 813fc04319e9db10dc3b2d9047100fa496ed4c77 Mon Sep 17 00:00:00 2001 From: Kristian Krsnik Date: Wed, 2 Aug 2023 16:29:58 +0200 Subject: [PATCH] added python extension in vscode --- home/default.nix | 5 ++++- home/vscode.nix | 8 +++++++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/home/default.nix b/home/default.nix index 6b54e22..db3af1d 100644 --- a/home/default.nix +++ b/home/default.nix @@ -46,7 +46,10 @@ yt-dlp.enable = true; bash = import ./bash.nix {enable = true;}; - vscode = import ./vscode.nix {enable = true;}; + vscode = import ./vscode.nix { + enable = true; + inherit pkgs; + }; git = import ./git.nix {enable = true;}; thunderbird = import ./thunderbird.nix {enable = true;}; diff --git a/home/vscode.nix b/home/vscode.nix index 42b5462..44ddfb5 100644 --- a/home/vscode.nix +++ b/home/vscode.nix @@ -1,4 +1,7 @@ -{enable}: { +{ + enable, + pkgs, +}: { inherit enable; enableUpdateCheck = false; keybindings = [ @@ -8,4 +11,7 @@ when = "editorTextFocus && !editorReadonly"; } ]; + extensions = with pkgs.vscode-extensions; [ + ms-python.python + ]; }