add nix flake and devShell

This commit is contained in:
Lyn Fugmann 2024-09-11 17:33:55 +02:00
parent 2b72fe99f6
commit e87770f6ca
5 changed files with 97 additions and 2 deletions

22
flake.nix Normal file
View file

@ -0,0 +1,22 @@
{
description = "ESE Website";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = nixpkgs.legacyPackages.${system};
in
{
devShells.default = pkgs.mkShell {
packages = with pkgs; [
nodejs # latest LTS version
];
};
}
);
}