add flake things
This commit is contained in:
parent
ee46050910
commit
f4bb9a2e12
1 changed files with 25 additions and 0 deletions
25
flake.nix
Normal file
25
flake.nix
Normal file
|
@ -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";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
});
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue