❄️ Add Nix shell

This commit is contained in:
2025-07-01 19:20:26 +02:00
parent 99aced7367
commit 969660abc8
3 changed files with 81 additions and 1 deletions

36
flake.nix Normal file
View File

@ -0,0 +1,36 @@
{
description = "martials.no Development environment";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-25.05";
};
outputs = { nixpkgs, ... }:
let
system = "x86_64-linux";
in
{
devShells.${system}.default =
let
pkgs = import nixpkgs {
inherit system;
};
in
pkgs.mkShell {
packages = with pkgs; [
git
] ++ [
# Node
nodejs_22
pnpm
] ++ [
nodePackages.prettier
];
shellHook = ''
pnpm install
fish
'';
};
};
}