Changes VSCode extension update script to use the flake's Nix packages

nix-darwin
Abhinav Sarkar 2023-11-24 21:12:04 +05:30
parent 8b569fd2c8
commit e9aa0b2378
2 changed files with 3 additions and 2 deletions

View File

@ -41,7 +41,8 @@
devShells.${system}.default = pkgs.mkShell {
buildInputs = with pkgs; [ (import home-manager { inherit pkgs; }).home-manager just ];
shellHook = ''
export NIXPKGS_PATH=${pkgs.path};
ln -s ${pkgs.path} .direnv/nixpkgs;
export NIX_PATH=`pwd`/.direnv;
'';
};
};

View File

@ -31,7 +31,7 @@ _switch:
switch: (_run "_switch")
_update-vscode-extensions:
$NIXPKGS_PATH/pkgs/applications/editors/vscode/extensions/update_installed_exts.sh > \
$NIX_PATH/nixpkgs/pkgs/applications/editors/vscode/extensions/update_installed_exts.sh > \
{{ root_dir }}/programs/vscode/extensions.nix
_update: _update-vscode-extensions && _switch