Add Nix flake

This commit is contained in:
Tibo De Peuter 2023-07-30 15:25:00 +02:00
parent 5c6e9dc17f
commit 8ce478c532
2 changed files with 87 additions and 0 deletions

28
flake.nix Normal file
View file

@ -0,0 +1,28 @@
{
description = "Portfolio";
inputs.flake-utils.url = "github:numtide/flake-utils";
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem
(system:
let
pkgs = import nixpkgs {
inherit system;
config.allowUnfree = true;
};
in {
devShells.default = pkgs.mkShell {
packages = with pkgs; [
jetbrains.webstorm
nodejs
nodePackages.live-server
];
shellHook = ''
webstorm . && exit
'';
};
}
);
}