-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
72 additions
and
1 deletion.
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,51 @@ | ||
# 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.nodejs_22 | ||
pkgs.pnpm | ||
]; | ||
|
||
# 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.flutter" | ||
"Dart-Code.dart-code" | ||
]; | ||
|
||
# Enable previews | ||
previews = { | ||
enable = true; | ||
previews = { | ||
web = { | ||
command = ["./dash_site" "serve"]; | ||
manager = "web"; | ||
env = { | ||
# Environment variables to set for your server | ||
PORT = "$PORT"; | ||
}; | ||
}; | ||
}; | ||
}; | ||
|
||
# Workspace lifecycle hooks | ||
workspace = { | ||
# Runs when a workspace is first created | ||
onCreate = { | ||
get-submodule = "git submodule update --init --recursive"; | ||
pnpm-install = "pnpm install"; | ||
}; | ||
# Runs when the workspace is (re)started | ||
onStart = { | ||
# Example: start a background task to watch and re-build backend code | ||
# watch-backend = "npm run watch-backend"; | ||
}; | ||
}; | ||
}; | ||
} |
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
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