# 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"
services.docker.enable = true;
# Use https://search.nixos.org/packages to find packages
packages = [
pkgs.php83
pkgs.php83Packages.composer
pkgs.php83Extensions.mongodb
pkgs.rPackages.specL
pkgs.nodejs_20
pkgs.sudo
pkgs.neovim
pkgs.apt
];
# Sets environment variables in the workspace
env = {};
idx = {
# Search for the extensions you want on https://open-vsx.org/ and use "publisher.id"
extensions = [
"formulahendry.auto-close-tag"
"formulahendry.auto-rename-tag"
"mikestead.dotenv"
"onecentlin.laravel5-snippets"
"DEVSENSE.composer-php-vscode"
"donjayamanne.githistory"
"GitHub.copilot"
"codezombiech.gitignore"
"eamodio.gitlens"
"ecmel.vscode-html-css"
"kisstkondoros.vscode-gutter-preview"
"oderwat.indent-rainbow"
"VisualStudioExptTeam.vscodeintellicode"
"VisualStudioExptTeam.intellicode-api-usage-examples"
"DEVSENSE.intelli-php-vscode"
"ryannaddy.laravel-artisan"
"shufo.vscode-blade-formatter"
"onecentlin.laravel-blade"
"austenc.laravel-blade-spacer"
"IHunte.laravel-blade-wrapper"
"glitchbl.laravel-create-view"
"onecentlin.laravel-extension-pack"
"MrChetan.goto-laravel-components"
"naoray.laravel-goto-components"
"mongodb.mongodb-vscode"
"DEVSENSE.phptools-vscode"
"xdebug.php-pack"
"esbenp.prettier-vscode"
"MrChetan.goto-laravel-components"
"amiralizadeh9480.laravel-extra-intellisense"
"onecentlin.laravel-extension-pack"
"codingyu.laravel-goto-view"
"pgl.laravel-jump-controller"
];
# Enable previews and customize configuration
previews = {
enable = true;
previews = {
web = {
command = ["php" "artisan" "serve" "--port" "$PORT" "--host" "0.0.0.0"];
manager = "web";
};
};
};
};
}
My dev.nix configuration is like this, but Iām having trouble installing the Mongodb PHP extension.
Please help me in the difficulty I am experiencing