File tree Expand file tree Collapse file tree 2 files changed +68
-0
lines changed
Expand file tree Collapse file tree 2 files changed +68
-0
lines changed Original file line number Diff line number Diff line change 1+ # To learn more about how to use Nix to configure your environment
2+ # see: https://developers.google.com/idx/guides/customize-idx-env
3+ { pkgs , ... } : {
4+ # Which nixpkgs channel to use.
5+ channel = "stable-24.11" ; # or "unstable"
6+
7+ # Use https://search.nixos.org/packages to find packages
8+ packages = [
9+ # pkgs.go
10+ # pkgs.python311
11+ # pkgs.python311Packages.pip
12+ # pkgs.nodejs_20
13+ # pkgs.nodePackages.nodemon
14+ pkgs . flutter
15+ pkgs . fish
16+ pkgs . stdenv . cc
17+ pkgs . htop
18+ pkgs . fastfetch
19+ ] ;
20+
21+ # Sets environment variables in the workspace
22+ env = { } ;
23+ idx = {
24+ # Search for the extensions you want on https://open-vsx.org/ and use "publisher.id"
25+ extensions = [
26+ # "vscodevim.vim"
27+ "dart-code.dart-code"
28+ "Dart-Code.flutter"
29+ ] ;
30+
31+ # Enable previews
32+ previews = {
33+ enable = true ;
34+ previews = {
35+ # web = {
36+ # # Example: run "npm run dev" with PORT set to IDX's defined port for previews,
37+ # # and show it in IDX's web preview panel
38+ # command = ["npm" "run" "dev"];
39+ # manager = "web";
40+ # env = {
41+ # # Environment variables to set for your server
42+ # PORT = "$PORT";
43+ # };
44+ # };
45+ } ;
46+ } ;
47+
48+ # Workspace lifecycle hooks
49+ workspace = {
50+ # Runs when a workspace is first created
51+ onCreate = {
52+ # Example: install JS dependencies from NPM
53+ # npm-install = "npm install";
54+ "setup" = "flutter pub get; dart test" ;
55+ } ;
56+ # Runs when the workspace is (re)started
57+ onStart = {
58+ # Example: start a background task to watch and re-build backend code
59+ # watch-backend = "npm run watch-backend";
60+ "setup" = "flutter pub get; dart test" ;
61+ } ;
62+ } ;
63+ } ;
64+ }
Original file line number Diff line number Diff line change @@ -91,3 +91,7 @@ Distributed under the MIT License. See `LICENSE` for more information.
9191## More Info:
9292
9393Port from [ open-spaced-repetition/py-fsrs@1b4cbe4] ( https://github.com/open-spaced-repetition/py-fsrs/tree/1b4cbe4 )
94+
95+ ## Online development
96+
97+ < https://idx.google.com/import >
You can’t perform that action at this time.
0 commit comments