nix setup
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 1m44s

This commit is contained in:
2025-06-09 17:35:04 +02:00
parent 8c1a24b857
commit 283fd95666
2 changed files with 63 additions and 0 deletions

36
flake.nix Normal file
View File

@@ -0,0 +1,36 @@
{
description = "Bennos Private Hugo Page";
nixConfig.bash-prompt = "gohugo";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
flake-compat = {
url = "github:edolstra/flake-compat";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = { nixpkgs, flake-utils }: {
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs { inherit system; };
in {
devShells.default = pkgs.mkShell {
buildInputs = [
pkgs.hugo
pkgs.nodejs_20
pkgs.tailwindcss
];
shellHook = ''
echo "Hugo + Tailwind dev environment ready!"
# Optionally install npm dependencies if you use a package.json
if [ -f package.json ]; then
npm install
fi
'';
};
};
}