Last active
January 2, 2025 14:36
-
-
Save arifnd/5e9781a2bae3eee203b65ff92d4412d3 to your computer and use it in GitHub Desktop.
Project idx nix file for Laravel
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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