Changes VSCode extension update script to use the flake's Nix packages
parent
8b569fd2c8
commit
e9aa0b2378
|
@ -41,7 +41,8 @@
|
||||||
devShells.${system}.default = pkgs.mkShell {
|
devShells.${system}.default = pkgs.mkShell {
|
||||||
buildInputs = with pkgs; [ (import home-manager { inherit pkgs; }).home-manager just ];
|
buildInputs = with pkgs; [ (import home-manager { inherit pkgs; }).home-manager just ];
|
||||||
shellHook = ''
|
shellHook = ''
|
||||||
export NIXPKGS_PATH=${pkgs.path};
|
ln -s ${pkgs.path} .direnv/nixpkgs;
|
||||||
|
export NIX_PATH=`pwd`/.direnv;
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
2
justfile
2
justfile
|
@ -31,7 +31,7 @@ _switch:
|
||||||
switch: (_run "_switch")
|
switch: (_run "_switch")
|
||||||
|
|
||||||
_update-vscode-extensions:
|
_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
|
{{ root_dir }}/programs/vscode/extensions.nix
|
||||||
|
|
||||||
_update: _update-vscode-extensions && _switch
|
_update: _update-vscode-extensions && _switch
|
||||||
|
|
Loading…
Reference in New Issue