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

27
flake.lock generated Normal file
View File

@@ -0,0 +1,27 @@
{
"nodes": {
"nixpkgs": {
"locked": {
"lastModified": 1749285348,
"narHash": "sha256-frdhQvPbmDYaScPFiCnfdh3B/Vh81Uuoo0w5TkWmmjU=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "3e3afe5174c561dee0df6f2c2b2236990146329f",
"type": "github"
},
"original": {
"owner": "nixos",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"root": {
"inputs": {
"nixpkgs": "nixpkgs"
}
}
},
"root": "root",
"version": 7
}

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
'';
};
};
}