quellcode.0x90.space/flake.nix

31 lines
649 B
Nix

{
description = "A Nix-flake-based Hugo development environment";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
};
outputs = { self , nixpkgs ,... }: let
system = "x86_64-linux";
in {
devShells."${system}".default = let
pkgs = import nixpkgs {
inherit system;
};
in pkgs.mkShell {
# create an environment with nodejs_18, pnpm, and yarn
packages = with pkgs; [
nodejs_24
nodePackages.pnpm
(yarn.override { nodejs = nodejs_24; })
hugo
rsync
];
shellHook = ''
echo "node `node --version`"
'';
};
};
}