forked from shekohex/opencode-pty
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdevenv.nix
More file actions
45 lines (41 loc) · 1.16 KB
/
devenv.nix
File metadata and controls
45 lines (41 loc) · 1.16 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
45
{
pkgs,
lib,
config,
inputs,
...
}:
let
browsers =
(builtins.fromJSON (builtins.readFile "${pkgs.playwright-driver}/browsers.json")).browsers;
chromium-rev = (builtins.head (builtins.filter (x: x.name == "chromium") browsers)).revision;
firefox-rev = (builtins.head (builtins.filter (x: x.name == "firefox") browsers)).revision;
in
{
# https://devenv.sh/packages/
packages = with pkgs; [
git
bashInteractive
biome
playwright-driver.browsers
];
env = with pkgs; {
PLAYWRIGHT_BROWSERS_PATH = "${playwright-driver.browsers}";
PLAYWRIGHT_CHROMIUM_EXECUTABLE_PATH = "${playwright-driver.browsers}/chromium-${chromium-rev}/chrome-linux64/chrome";
PLAYWRIGHT_FIREFOX_EXECUTABLE_PATH = "${playwright-driver.browsers}/firefox-${firefox-rev}/firefox/firefox";
BIOME_BINARY="${biome}/bin/biome";
};
# https://devenv.sh/languages/
languages.javascript = {
# disable prepending node_modules/.bin to PATH
# it is causing trouble with biome
enable = true;
bun = {
enable = true;
install = {
enable = true;
};
};
};
# See full reference at https://devenv.sh/reference/options/
}