mirror of
https://github.com/ryan4yin/nixos-and-flakes-book.git
synced 2024-11-21 15:43:09 +01:00
feat: replace 'nix flake lock --update-input' with 'nix flake update'
This commit is contained in:
parent
9c6ff9b58c
commit
8ca5f58923
@ -33,7 +33,7 @@ up:
|
||||
# Update specific input
|
||||
# usage: make upp i=home-manager
|
||||
upp:
|
||||
nix flake lock --update-input $(i)
|
||||
nix flake update $(i)
|
||||
|
||||
history:
|
||||
nix profile history --profile /nix/var/nix/profiles/system
|
||||
|
@ -8,7 +8,7 @@ in `/etc/nixos` or any other location where you keep the configuration:
|
||||
nix flake update
|
||||
|
||||
# Or replace only the specific input, such as home-manager:
|
||||
nix flake lock --update-input home-manager
|
||||
nix flake update home-manager
|
||||
|
||||
# Apply the updates
|
||||
sudo nixos-rebuild switch --flake .
|
||||
|
@ -34,7 +34,7 @@ up:
|
||||
# Update specific input
|
||||
# usage: make upp i=home-manager
|
||||
upp:
|
||||
nix flake lock --update-input $(i)
|
||||
nix flake update $(i)
|
||||
|
||||
history:
|
||||
nix profile history --profile /nix/var/nix/profiles/system
|
||||
|
@ -8,7 +8,7 @@
|
||||
nix flake update
|
||||
|
||||
# 或者也可以只更新特定的依赖项,比如只更新 home-manager:
|
||||
nix flake lock --update-input home-manager
|
||||
nix flake update home-manager
|
||||
|
||||
# 部署系统
|
||||
sudo nixos-rebuild switch --flake .
|
||||
|
Loading…
Reference in New Issue
Block a user