feat: replace 'nix flake lock --update-input' with 'nix flake update'

This commit is contained in:
Ryan Yin 2024-06-03 09:36:38 +08:00
parent 9c6ff9b58c
commit 8ca5f58923
4 changed files with 4 additions and 4 deletions

View file

@ -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

View file

@ -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 .

View file

@ -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

View file

@ -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 .