-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdev.nix
More file actions
44 lines (44 loc) · 1.25 KB
/
dev.nix
File metadata and controls
44 lines (44 loc) · 1.25 KB
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# To learn more about how to use Nix to configure your environment
# see: https://firebase.google.com/docs/studio/customize-workspace
{pkgs}: {
# Which nixpkgs channel to use.
channel = "stable-24.11"; # or "unstable"
# Use https://search.nixos.org/packages to find packages
packages = [
pkgs.nodejs_20
pkgs.zulu
];
# Sets environment variables in the workspace
env = {};
# This adds a file watcher to startup the firebase emulators. The emulators will only start if
# a firebase.json file is written into the user's directory
services.firebase.emulators = {
# Disabling because we are using prod backends right now
detect = false;
projectId = "demo-app";
services = ["auth" "firestore"];
};
idx = {
# Search for the extensions you want on https://open-vsx.org/ and use "publisher.id"
extensions = [
# "vscodevim.vim"
];
workspace = {
onCreate = {
default.openFiles = [
"src/app/page.tsx"
];
};
};
# Enable previews and customize configuration
previews = {
enable = true;
previews = {
web = {
command = ["npm" "run" "dev" "--" "--port" "$PORT" "--hostname" "0.0.0.0"];
manager = "web";
};
};
};
};
}