Skip to content

Commit f6b6569

Browse files
committed
starting
1 parent 7c39249 commit f6b6569

File tree

1 file changed

+55
-0
lines changed

1 file changed

+55
-0
lines changed

.idx/dev.nix

+55
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
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-23.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+
];
15+
16+
# Sets environment variables in the workspace
17+
env = {};
18+
idx = {
19+
# Search for the extensions you want on https://open-vsx.org/ and use "publisher.id"
20+
extensions = [
21+
# "vscodevim.vim"
22+
];
23+
24+
# Enable previews
25+
previews = {
26+
enable = true;
27+
previews = {
28+
# web = {
29+
# # Example: run "npm run dev" with PORT set to IDX's defined port for previews,
30+
# # and show it in IDX's web preview panel
31+
# command = ["npm" "run" "dev"];
32+
# manager = "web";
33+
# env = {
34+
# # Environment variables to set for your server
35+
# PORT = "$PORT";
36+
# };
37+
# };
38+
};
39+
};
40+
41+
# Workspace lifecycle hooks
42+
workspace = {
43+
# Runs when a workspace is first created
44+
onCreate = {
45+
# Example: install JS dependencies from NPM
46+
# npm-install = "npm install";
47+
};
48+
# Runs when the workspace is (re)started
49+
onStart = {
50+
# Example: start a background task to watch and re-build backend code
51+
# watch-backend = "npm run watch-backend";
52+
};
53+
};
54+
};
55+
}

0 commit comments

Comments
 (0)