From 877f702df2e057a42979f50042290f5629ca1441 Mon Sep 17 00:00:00 2001 From: Gabriel Fontes Date: Sat, 27 Apr 2024 10:06:04 -0300 Subject: [PATCH] add note about out-of-date lock Co-authored-by: Charlot Shaw <141575226+charlot-shaw@users.noreply.github.com> --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index d9ef10cb..ddeb852f 100644 --- a/README.md +++ b/README.md @@ -87,6 +87,8 @@ nix flake init -t github:misterio77/nix-starter-config#standard yet. - Take a look at `flake.nix`, making sure to fill out anything marked with FIXME (required) or TODO (usually tips or optional stuff you might want) +- Update your flake lock with `nix flake update`, so you get the latest + packages and modules - `git add` and `git push` your changes! Or at least copy them somewhere if you're on a live medium. @@ -284,6 +286,14 @@ and you should be good to go. Files on `.gitignore`, of course, are invisible to nix - this is to guarantee your build won't depend on anything that is not on your repo. +## Nix installs the wrong version of software/fails to find new software + +The nix dependencies (such as `nixpkgs`) used by your configuration will +strictly follow the `flake.lock` file, using the commits written into it when +you (re)generated. + +To update your flake inputs, simply use `nix flake update`. +