-
Notifications
You must be signed in to change notification settings - Fork 7.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adds idx template files to gemini tasks
- Loading branch information
1 parent
edc1863
commit 4939b74
Showing
3 changed files
with
68 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
{ pkgs }: { | ||
channel = "stable-23.11"; | ||
packages = [ | ||
pkgs.nodePackages.firebase-tools | ||
pkgs.jdk17 | ||
pkgs.unzip | ||
]; | ||
idx = { | ||
workspace = { | ||
# Runs when a workspace is first created with this `dev.nix` file | ||
onCreate = { | ||
# Open editors for the following files by default, if they exist. | ||
# The last file in the list will be focused. | ||
default.openFiles = [ | ||
"lib/main.dart" | ||
]; | ||
# Include other scripts here, as needed, for example: | ||
# installDependencies = "npm install"; | ||
}; | ||
# To run something each time the workspace is (re)started, use the `onStart` hook | ||
}; | ||
previews = { | ||
previews = { | ||
web = { | ||
command = [ | ||
"flutter" | ||
"run" | ||
"--machine" | ||
"-d" | ||
"web-server" | ||
"--web-hostname" | ||
"0.0.0.0" | ||
"--web-port" | ||
"$PORT" | ||
]; | ||
manager = "flutter"; | ||
}; | ||
android = { | ||
command = [ | ||
"flutter" | ||
"run" | ||
"--machine" | ||
"-d" | ||
"android" | ||
"-d" | ||
"emulator-5554" | ||
]; | ||
manager = "flutter"; | ||
}; | ||
}; | ||
}; | ||
}; | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"name": "Flutter Todo list with Gemini", | ||
"description": "A template for a todo list app that integrates with the Gemini API", | ||
"icon": "https://www.gstatic.com/images/branding/productlogos/idx/v1/192px.svg", | ||
"params": [] | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# No user-configurable parameters | ||
{ pkgs, ... }: { | ||
# Shell script that produces the final environment | ||
bootstrap = '' | ||
cp -rf ${./.} "$out" | ||
chmod -R +w "$out" | ||
rm -rf "$out/.git" "$out/idx-template".{nix,json} | ||
''; | ||
} |