mirror of
https://github.com/nix-community/home-manager.git
synced 2026-06-05 21:02:51 +00:00
home-environment: use nix profile add instead of install
nix profile install was renamed to nix profile add in Nix 2.28. The old name still works as a deprecated alias but produces a warning on every home-manager switch: warning: 'install' is a deprecated alias for 'add' Signed-off-by: Bart Smykla <bartek@smykla.com>
This commit is contained in:
committed by
Robert Helgesson
parent
603626a8da
commit
e8d5fc77c2
@@ -712,11 +712,11 @@ in
|
||||
|
||||
nixProfileRemove 'home-manager-path'
|
||||
|
||||
run $oldNix profile install $1
|
||||
run $oldNix profile add $1
|
||||
}
|
||||
|
||||
if [[ -e ${cfg.profileDirectory}/manifest.json ]] ; then
|
||||
INSTALL_CMD="nix profile install"
|
||||
INSTALL_CMD="nix profile add"
|
||||
INSTALL_CMD_ACTUAL="nixReplaceProfile"
|
||||
LIST_CMD="nix profile list"
|
||||
REMOVE_CMD_SYNTAX='nix profile remove {number | store path}'
|
||||
|
||||
@@ -54,7 +54,7 @@
|
||||
|
||||
# Make sure that Alice has a "nix profile" compatible profile.
|
||||
if True:
|
||||
succeed_as_alice("nix profile install nixpkgs#cowsay")
|
||||
succeed_as_alice("nix profile add nixpkgs#cowsay")
|
||||
result = succeed_as_alice("cowsay Hello")
|
||||
machine.log(f"\n{result}")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user