Skip to content

Instantly share code, notes, and snippets.

@muhamadsobari198
Forked from arifnd/laravel.nix
Created September 1, 2024 09:27
Show Gist options
  • Save muhamadsobari198/7fcbf422ce36fcc9772ce6319b421a68 to your computer and use it in GitHub Desktop.
Save muhamadsobari198/7fcbf422ce36fcc9772ce6319b421a68 to your computer and use it in GitHub Desktop.
# 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 = [
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";
};
};
};
};
}
@muhamadsobari198
Copy link
Author

for project idx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment