From 8028d83893fd0a673c39e10e0e3f9fb37492db8e Mon Sep 17 00:00:00 2001 From: Ryan Yin Date: Wed, 16 Apr 2025 14:40:45 +0800 Subject: [PATCH] fix: issue #214 --- docs/en/nixos-with-flakes/update-the-system.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/en/nixos-with-flakes/update-the-system.md b/docs/en/nixos-with-flakes/update-the-system.md index e5264e2..14f1f69 100644 --- a/docs/en/nixos-with-flakes/update-the-system.md +++ b/docs/en/nixos-with-flakes/update-the-system.md @@ -7,14 +7,14 @@ in `/etc/nixos` or any other location where you keep the configuration: # Update flake.lock nix flake update -# Or replace only the specific input, such as home-manager: +# Or update only the specific input, such as home-manager: 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 . +# Or to update flake.lock & apply with one command (i.e. same as running "nix flake update" before 'switch') +sudo nixos-rebuild switch --flake . ``` Occasionally, you may encounter a "sha256 mismatch" error when running