From 3f5cfc3d66c723dc57238fa7e6305f52ae73d804 Mon Sep 17 00:00:00 2001 From: Benno Lorenz Date: Mon, 9 Jun 2025 17:40:04 +0200 Subject: [PATCH] fixed nix config --- flake.lock | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ flake.nix | 12 +++++------- 2 files changed, 55 insertions(+), 7 deletions(-) diff --git a/flake.lock b/flake.lock index a67fb22..d54b545 100644 --- a/flake.lock +++ b/flake.lock @@ -1,5 +1,38 @@ { "nodes": { + "flake-compat": { + "locked": { + "lastModified": 1747046372, + "narHash": "sha256-CIVLLkVgvHYbgI2UpXvIIBJ12HWgX+fjA8Xf8PUmqCY=", + "owner": "edolstra", + "repo": "flake-compat", + "rev": "9100a0f413b0c601e0533d1d94ffd501ce2e7885", + "type": "github" + }, + "original": { + "owner": "edolstra", + "repo": "flake-compat", + "type": "github" + } + }, + "flake-utils": { + "inputs": { + "systems": "systems" + }, + "locked": { + "lastModified": 1731533236, + "narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=", + "owner": "numtide", + "repo": "flake-utils", + "rev": "11707dc2f618dd54ca8739b309ec4fc024de578b", + "type": "github" + }, + "original": { + "owner": "numtide", + "repo": "flake-utils", + "type": "github" + } + }, "nixpkgs": { "locked": { "lastModified": 1749285348, @@ -18,8 +51,25 @@ }, "root": { "inputs": { + "flake-compat": "flake-compat", + "flake-utils": "flake-utils", "nixpkgs": "nixpkgs" } + }, + "systems": { + "locked": { + "lastModified": 1681028828, + "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", + "owner": "nix-systems", + "repo": "default", + "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", + "type": "github" + }, + "original": { + "owner": "nix-systems", + "repo": "default", + "type": "github" + } } }, "root": "root", diff --git a/flake.nix b/flake.nix index 9628d7b..232f226 100644 --- a/flake.nix +++ b/flake.nix @@ -1,7 +1,6 @@ { description = "Bennos Private Hugo Page"; - nixConfig.bash-prompt = "gohugo"; - + nixConfig.bash-prompt = "\[gohugo\]$ "; inputs = { nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable"; @@ -12,8 +11,7 @@ }; }; - outputs = { nixpkgs, flake-utils }: { - + outputs = { self, nixpkgs, flake-utils, ... }: flake-utils.lib.eachDefaultSystem (system: let pkgs = import nixpkgs { inherit system; }; @@ -26,11 +24,11 @@ ]; 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 ''; }; - }; -} + } + ); +} \ No newline at end of file