My dev.nix:
# To learn more about how to use Nix to configure your environment
# see: https://developers.google.com/idx/guides/customize-idx-env
{pkgs}: {
# Which nixpkgs channel to use.
channel = "stable-23.11"; # or "unstable"
# Use https://search.nixos.org/packages to find packages
packages = [
# To learn more about setting custom php.ini configurations
# see: https://wiki.nixos.org/wiki/PHP
# Replace pkgs.php82 with the php version you want; ex pkgs.php83
pkgs.php82
(pkgs.php82.buildEnv {
extensions = ({enabled, all}: enabled ++ (with all; [
mbstring
iconv
]));
})
pkgs.php82Packages.composer
pkgs.nodejs_20
]
# Sets environment variables in the workspace
env = {};
idx = {
# Search for the extensions you want on https://open-vsx.org/ and use "publisher.id"
extensions = [
# "vscodevim.vim"
];
# Enable previews and customize configuration
previews = {
enable = true;
previews = {
web = {
command = ["php" "artisan" "serve" "--port" "$PORT" "--host" "0.0.0.0"];
manager = "web";
};
};
};
};
}
I use this this for configuration in IDX for PHP extension but i unable to see it when I run php -m
I need these extension for my Laravel project
How to fix this issue?