mirror of
https://github.com/nix-community/home-manager.git
synced 2024-12-14 11:57:55 +00:00
home-environment: support recent Nix versions
Recent Nix versions fail when running `nix profile remove` with no argument. If packages are externally managed, and we have nothing to remove, do not run the `nix profile remove` command.
This commit is contained in:
parent
4370b09cde
commit
ab5542e9db
1 changed files with 1 additions and 1 deletions
|
@ -589,7 +589,7 @@ in
|
|||
nix profile list \
|
||||
| { grep 'home-manager-path$' || test $? = 1; } \
|
||||
| cut -d ' ' -f 4 \
|
||||
| xargs -t $DRY_RUN_CMD nix profile remove $VERBOSE_ARG
|
||||
| xargs -rt $DRY_RUN_CMD nix profile remove $VERBOSE_ARG
|
||||
else
|
||||
if nix-env -q | grep '^home-manager-path$'; then
|
||||
$DRY_RUN_CMD nix-env -e home-manager-path
|
||||
|
|
Loading…
Reference in a new issue