From 4182ea370f302bf58347da1ebdce535f07675b8f Mon Sep 17 00:00:00 2001 From: Akshay Nair Date: Sat, 28 Oct 2023 00:31:20 +0530 Subject: chore: init commit with no shit --- flake.nix | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 flake.nix (limited to 'flake.nix') diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..be81083 --- /dev/null +++ b/flake.nix @@ -0,0 +1,30 @@ +{ + inputs = { + nixpkgs.url = "nixpkgs/nixos-unstable"; + }; + + outputs = { self, nixpkgs }: + let + supportedSystems = [ "x86_64-linux" ]; + forAllSystems = nixpkgs.lib.genAttrs supportedSystems; + nixpkgsFor = forAllSystems (system: import nixpkgs { inherit system; }); + + shell = pkgs: with pkgs; mkShell { + buildInputs = [ + nodejs-18_x + nodePackages.typescript + nodePackages.typescript-language-server + just + ]; + }; + in + { + devShells = forAllSystems (system: + let + pkgs = import nixpkgs { inherit system; }; + in + { + default = shell pkgs; + }); + }; +} -- cgit v1.3.1