Skip to content

Instantly share code, notes, and snippets.

@arifnd
Last active January 2, 2025 14:36
Show Gist options
  • Save arifnd/5e9781a2bae3eee203b65ff92d4412d3 to your computer and use it in GitHub Desktop.
Save arifnd/5e9781a2bae3eee203b65ff92d4412d3 to your computer and use it in GitHub Desktop.
Project idx nix file for Laravel
# 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-24.11"; # or "unstable"
# Use https://search.nixos.org/packages to find packages
packages = [
pkgs.php82
pkgs.php82Packages.composer
pkgs.nodejs_20
pkgs.sqlite
];
# 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";
};
};
};
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment