diff --git a/.idx/dev.nix b/.idx/dev.nix new file mode 100644 index 0000000000..bf44316d92 --- /dev/null +++ b/.idx/dev.nix @@ -0,0 +1,28 @@ +# 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.05"; # or "unstable" + + # Use https://search.nixos.org/packages to find packages + packages = [ + pkgs.jdk17 + pkgs.unzip + ]; + + # Sets environment variables in the workspace + env = {}; + idx = { + # Search for the extensions you want on https://open-vsx.org/ and use "publisher.id" + extensions = [ + "Dart-Code.dart-code" + "Dart-Code.flutter" + ]; + workspace = { + # Runs when a workspace is first created + onCreate = { + updateStable = "flutter channel stable && flutter upgrade && for dir in `find . -name pubspec.yaml -exec dirname {} \; | sort`; do pushd $dir ; flutter pub get; popd; done"; + }; + }; + }; +}