From f4bb9a2e12820496e8a38f128fd666bb4ec50aa5 Mon Sep 17 00:00:00 2001 From: Sakooooo <78461130+Sakooooo@users.noreply.github.com> Date: Thu, 14 Nov 2024 13:51:21 +0400 Subject: [PATCH] add flake things --- flake.nix | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 flake.nix diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..e19c40b --- /dev/null +++ b/flake.nix @@ -0,0 +1,25 @@ +{ + description = "website"; + + inputs = { nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; }; + + outputs = { self, nixpkgs }: + let + inherit (nixpkgs) lib; + inherit (builtins) attrValues; + eachSystem = f: + lib.genAttrs [ "x86_64-linux" ] + (system: f nixpkgs.legacyPackages.${system}); + in { + + devShells = eachSystem (pkgs: { + default = pkgs.mkShell { + packages = attrValues { + inherit (pkgs) pnpm; + inherit (pkgs.nodePackages_latest) "@astrojs/language-server"; + }; + }; + }); + + }; +}