Skip to content

Commit a1e6912

Browse files
committed
Add dev.nix
1 parent 5f95d35 commit a1e6912

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

.idx/dev.nix

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
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.just
10+
pkgs.gcc
11+
pkgs.haskell.compiler.ghc947
12+
pkgs.stack
13+
];
14+
15+
# Sets environment variables in the workspace
16+
env = {};
17+
idx = {
18+
# Search for the extensions you want on https://open-vsx.org/ and use "publisher.id"
19+
extensions = [
20+
"haskell.haskell"
21+
];
22+
23+
# Enable previews
24+
previews = {
25+
enable = false;
26+
previews = {
27+
};
28+
};
29+
30+
# Workspace lifecycle hooks
31+
workspace = {
32+
# Runs when a workspace is first created
33+
onCreate = {
34+
# Example: install JS dependencies from NPM
35+
# npm-install = 'npm install';
36+
};
37+
onStart = {
38+
# Example: start a background task to watch and re-build backend code
39+
# watch-backend = "npm run watch-backend";
40+
};
41+
};
42+
};
43+
}

0 commit comments

Comments
 (0)