From e8d5fc77c212eea1f0b18648ce48e84df2eb5c4c Mon Sep 17 00:00:00 2001 From: Bart Smykla Date: Tue, 17 Feb 2026 14:52:11 +0100 Subject: [PATCH] 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 --- modules/home-environment.nix | 4 ++-- tests/integration/standalone/flake-basics.nix | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/home-environment.nix b/modules/home-environment.nix index 4f4904c7..76bc9241 100644 --- a/modules/home-environment.nix +++ b/modules/home-environment.nix @@ -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}' diff --git a/tests/integration/standalone/flake-basics.nix b/tests/integration/standalone/flake-basics.nix index 137b2a25..51424aca 100644 --- a/tests/integration/standalone/flake-basics.nix +++ b/tests/integration/standalone/flake-basics.nix @@ -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}")