schlechtenburg/flake.nix

35 lines
1 KiB
Nix
Raw Normal View History

{
description = "Schlechtenburg";
inputs = {
2024-10-08 07:15:26 +00:00
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; [
2024-10-08 07:15:26 +00:00
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"; }
];
};
};
}