Skip to content

Commit

Permalink
fix: could not override environments in vscodium
Browse files Browse the repository at this point in the history
  • Loading branch information
GetPsyched committed Nov 13, 2023
1 parent e5b57e3 commit f80e667
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 8 deletions.
7 changes: 2 additions & 5 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,8 @@
in
{
packages = forAllSystems (pkgs: with pkgs; {
default = ({ environments ? [ "nix" ] }: callPackage ./packages/default.nix { inherit environments; }) { };

vscodium = ({ environments ? [ "nix" ] }: callPackage ./packages/vscodium.nix {
envExtensions = (builtins.concatMap (env: (import ./devShells/${env}.nix { inherit pkgs; }).vscodium.extensions) environments);
}) { };
default = callPackage ./packages/default.nix { };
vscodium = callPackage ./packages/vscodium.nix { };
});
};
}
2 changes: 1 addition & 1 deletion packages/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ environments, pkgs, ... }:
{ environments ? [ "nix" ], pkgs, ... }:

with pkgs; symlinkJoin {
name = "default";
Expand Down
4 changes: 2 additions & 2 deletions packages/vscodium.nix
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{ envExtensions ? [ ], extensions ? [ ], pkgs, ... }:
{ environments ? [ "nix" ], extensions ? [ ], pkgs, ... }:

with pkgs; symlinkJoin {
name = "vscodium";
paths = [
(vscode-with-extensions.override {
vscode = vscodium;
vscodeExtensions = envExtensions ++ extensions;
vscodeExtensions = (builtins.concatMap (env: (import ../devShells/${env}.nix { inherit pkgs; }).vscodium.extensions) environments) ++ extensions;
})

# Fix for: https://discourse.nixos.org/t/interactive-bash-with-nix-develop-flake/15486
Expand Down

0 comments on commit f80e667

Please sign in to comment.