From 869cea884c2395dbbfa532ccab6a3bb021c1ac06 Mon Sep 17 00:00:00 2001 From: Felix Stupp Date: Fri, 9 Aug 2024 03:39:30 +0200 Subject: [PATCH] update-the-system: add hint about --recreate-lock-file argument (#181) --- docs/nixos-with-flakes/update-the-system.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/nixos-with-flakes/update-the-system.md b/docs/nixos-with-flakes/update-the-system.md index 64b29e7..e5264e2 100644 --- a/docs/nixos-with-flakes/update-the-system.md +++ b/docs/nixos-with-flakes/update-the-system.md @@ -12,6 +12,9 @@ nix flake update home-manager # Apply the updates sudo nixos-rebuild switch --flake . + +# Or to update flake.lock & apply with one command (i.e. same as running "nix flake update" before) +sudo nixos-rebuild switch --recreate-lock-file --flake . ``` Occasionally, you may encounter a "sha256 mismatch" error when running