home-environment: revert use nix profile add instead of install

This reverts commit e8d5fc77c2.
This commit is contained in:
Adam C. Stephens 2026-03-01 13:45:20 -05:00 committed by Austin Horstman
parent f140aa04d7
commit a71c7c601e
2 changed files with 3 additions and 3 deletions

View file

@ -712,11 +712,11 @@ in
nixProfileRemove 'home-manager-path'
run $oldNix profile add $1
run $oldNix profile install $1
}
if [[ -e ${cfg.profileDirectory}/manifest.json ]] ; then
INSTALL_CMD="nix profile add"
INSTALL_CMD="nix profile install"
INSTALL_CMD_ACTUAL="nixReplaceProfile"
LIST_CMD="nix profile list"
REMOVE_CMD_SYNTAX='nix profile remove {number | store path}'

View file

@ -54,7 +54,7 @@
# Make sure that Alice has a "nix profile" compatible profile.
if True:
succeed_as_alice("nix profile add nixpkgs#cowsay")
succeed_as_alice("nix profile install nixpkgs#cowsay")
result = succeed_as_alice("cowsay Hello")
machine.log(f"\n{result}")