-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdev.nix
29 lines (29 loc) · 803 Bytes
/
dev.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# To learn more about how to use Nix to configure your environment
# see: https://developers.google.com/idx/guides/customize-idx-env
{ pkgs, ... }: {
channel = "stable-23.11"; # "stable-23.11" or "unstable"
# Use https://search.nixos.org/packages to find packages
packages = [
pkgs.nodejs
];
# runs when a workspace is first created with this `dev.nix` file
# to run something each time the environment is rebuilt, use the `onStart` hook
idx.workspace.onCreate = {
install = "npm install";
};
# preview configuration
idx.previews = {
enable = true;
previews = [
{
command = ["npx" "@11ty/eleventy" "--serve" "--port=$PORT"];
manager = "web";
id = "web";
}
{
manager = "ios";
id = "ios";
}
];
};
}