aboutsummaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
authorAkshay Nair <phenax5@gmail.com>2023-10-28 00:31:20 +0530
committerAkshay Nair <phenax5@gmail.com>2023-10-28 00:31:20 +0530
commit4182ea370f302bf58347da1ebdce535f07675b8f (patch)
treed1de8c4856cc1edacf38a29937d125f272bd2898 /flake.nix
downloadcreative-coding-playground-4182ea370f302bf58347da1ebdce535f07675b8f.tar.gz
creative-coding-playground-4182ea370f302bf58347da1ebdce535f07675b8f.zip
chore: init commit with no shit
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix30
1 files changed, 30 insertions, 0 deletions
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;
+ });
+ };
+}