Skip to content
28 changes: 28 additions & 0 deletions .idx/dev.nix
Original file line number Diff line number Diff line change
@@ -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 && flutter pub get";
};
};
};
}
Loading