schlechtenburg/flake.nix
2024-10-08 09:15:26 +02:00

35 lines
1 KiB
Nix

{
description = "Schlechtenburg";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
devshell.url = "github:numtide/devshell";
devshell.inputs.nixpkgs.follows = "nixpkgs";
};
outputs = { self, flake-utils, devshell, nixpkgs }:
flake-utils.lib.simpleFlake {
inherit self nixpkgs;
name = "schlechtenburg";
preOverlays = [ devshell.overlays.default ];
shell = { pkgs }: pkgs.devshell.mkShell {
devshell.packages = with pkgs; [
nodejs
nodePackages.typescript
nodePackages.typescript-language-server
nodePackages.vue-language-server
playwright
];
env = [
{ name = "PLAYWRIGHT_NODEJS_PATH"; value = "${pkgs.nodejs}/bin/node"; }
{ name = "PLAYWRIGHT_BROWSERS_PATH"; value = "${pkgs.playwright-driver.browsers}"; }
{ name = "PLAYWRIGHT_SKIP_VALIDATE_HOST_REQUIREMENTS"; value = "true"; }
];
};
};
}