mirror of
https://github.com/moons-14/dotfiles.git
synced 2026-10-06 05:18:12 +09:00
web
This commit is contained in:
@@ -116,7 +116,10 @@
|
|||||||
devShells = {
|
devShells = {
|
||||||
x86_64-linux =
|
x86_64-linux =
|
||||||
let
|
let
|
||||||
pkgs = import nixpkgs { system = "x86_64-linux"; };
|
pkgs = import nixpkgs {
|
||||||
|
system = "x86_64-linux";
|
||||||
|
config.allowUnfreePredicate = pkg: builtins.elem (nixpkgs.lib.getName pkg) [ "ngrok" ];
|
||||||
|
};
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
next-web = import ./shells/next-web.nix { inherit pkgs; };
|
next-web = import ./shells/next-web.nix { inherit pkgs; };
|
||||||
|
|||||||
+26
-2
@@ -70,7 +70,6 @@ let
|
|||||||
web = {
|
web = {
|
||||||
extensions =
|
extensions =
|
||||||
(with vsc; [
|
(with vsc; [
|
||||||
biomejs.biome
|
|
||||||
lokalise.i18n-ally
|
lokalise.i18n-ally
|
||||||
bradlc.vscode-tailwindcss
|
bradlc.vscode-tailwindcss
|
||||||
prisma.prisma
|
prisma.prisma
|
||||||
@@ -97,6 +96,13 @@ let
|
|||||||
hash = "sha256-lUSwtf7jncnrp6UXgmZU30e+CFRKqf0N41+Xna6daok=";
|
hash = "sha256-lUSwtf7jncnrp6UXgmZU30e+CFRKqf0N41+Xna6daok=";
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
userSettings = { };
|
||||||
|
};
|
||||||
|
|
||||||
|
web-biome = {
|
||||||
|
extensions = with vsc; [
|
||||||
|
biomejs.biome
|
||||||
|
];
|
||||||
userSettings = {
|
userSettings = {
|
||||||
"editor.defaultFormatter" = "biomejs.biome";
|
"editor.defaultFormatter" = "biomejs.biome";
|
||||||
"[typescript].editor.defaultFormatter" = "biomejs.biome";
|
"[typescript].editor.defaultFormatter" = "biomejs.biome";
|
||||||
@@ -104,6 +110,22 @@ let
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
web-oxc = {
|
||||||
|
extensions = pkgs.vscode-utils.extensionsFromVscodeMarketplace [
|
||||||
|
{
|
||||||
|
name = "oxc-vscode";
|
||||||
|
publisher = "oxc";
|
||||||
|
version = "1.48.0";
|
||||||
|
hash = "sha256-RZ7mLcLJyn7lR6w6Au6fZeguB3wtk8sIXb67lPnPnrc=";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
userSettings = {
|
||||||
|
"editor.defaultFormatter" = "oxc.oxc-vscode";
|
||||||
|
"[typescript].editor.defaultFormatter" = "oxc.oxc-vscode";
|
||||||
|
"[typescriptreact].editor.defaultFormatter" = "oxc.oxc-vscode";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
nix = {
|
nix = {
|
||||||
extensions = with vsc; [
|
extensions = with vsc; [
|
||||||
bbenoist.nix
|
bbenoist.nix
|
||||||
@@ -250,7 +272,9 @@ in
|
|||||||
|
|
||||||
nix = mkProfile [ layers.common layers.nix ] { };
|
nix = mkProfile [ layers.common layers.nix ] { };
|
||||||
|
|
||||||
web = mkProfile [ layers.common layers.web ] { };
|
web = mkProfile [ layers.common layers.web layers.web-biome ] { };
|
||||||
|
|
||||||
|
web-oxc = mkProfile [ layers.common layers.web layers.web-oxc ] { };
|
||||||
|
|
||||||
jupyter = mkProfile [ layers.common layers.jupyter ] { };
|
jupyter = mkProfile [ layers.common layers.jupyter ] { };
|
||||||
|
|
||||||
|
|||||||
+10
-4
@@ -7,11 +7,14 @@ pkgs.mkShell {
|
|||||||
|
|
||||||
packages = with pkgs; [
|
packages = with pkgs; [
|
||||||
node
|
node
|
||||||
pnpm
|
nodePackages_latest.pnpm
|
||||||
|
nodePackages_latest.vercel
|
||||||
|
nodePackages_latest.prisma
|
||||||
zsh
|
zsh
|
||||||
openssl
|
openssl
|
||||||
pkg-config
|
pkg-config
|
||||||
jq
|
jq
|
||||||
|
ngrok
|
||||||
];
|
];
|
||||||
|
|
||||||
NODE_ENV = "development";
|
NODE_ENV = "development";
|
||||||
@@ -30,9 +33,6 @@ pkgs.mkShell {
|
|||||||
|
|
||||||
# Prisma engines from nixpkgs (avoid binaries.prisma.sh fetch on NixOS)
|
# Prisma engines from nixpkgs (avoid binaries.prisma.sh fetch on NixOS)
|
||||||
export PKG_CONFIG_PATH="${pkgs.openssl.dev}/lib/pkgconfig"
|
export PKG_CONFIG_PATH="${pkgs.openssl.dev}/lib/pkgconfig"
|
||||||
export PRISMA_SCHEMA_ENGINE_BINARY="${pkgs.prisma-engines}/bin/schema-engine"
|
|
||||||
export PRISMA_QUERY_ENGINE_BINARY="${pkgs.prisma-engines}/bin/query-engine"
|
|
||||||
export PRISMA_QUERY_ENGINE_LIBRARY="${pkgs.prisma-engines}/lib/libquery_engine.node"
|
|
||||||
export PRISMA_FMT_BINARY="${pkgs.prisma-engines}/bin/prisma-fmt"
|
export PRISMA_FMT_BINARY="${pkgs.prisma-engines}/bin/prisma-fmt"
|
||||||
|
|
||||||
# ---- show tool versions
|
# ---- show tool versions
|
||||||
@@ -57,4 +57,10 @@ pkgs.mkShell {
|
|||||||
exec ${pkgs.zsh}/bin/zsh -i
|
exec ${pkgs.zsh}/bin/zsh -i
|
||||||
fi
|
fi
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
env = {
|
||||||
|
PRISMA_QUERY_ENGINE_LIBRARY = "${pkgs.prisma-engines}/lib/libquery_engine.node";
|
||||||
|
PRISMA_QUERY_ENGINE_BINARY = "${pkgs.prisma-engines}/bin/query-engine";
|
||||||
|
PRISMA_SCHEMA_ENGINE_BINARY = "${pkgs.prisma-engines}/bin/schema-engine";
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user