mirror of
https://github.com/nix-community/home-manager
synced 2024-12-24 02:39:48 +01:00
home-manager: remove uninstall activation phase
The manual install has been long deprecated so it should be safe to no longer attempt to do an uninstall on each activation.
This commit is contained in:
parent
8d4c65f259
commit
05c93ff3ae
1 changed files with 0 additions and 12 deletions
|
@ -39,17 +39,5 @@ in
|
|||
inherit (cfg) path;
|
||||
})
|
||||
];
|
||||
|
||||
# Uninstall manually installed home-manager, if such exists.
|
||||
# Without this a file collision error will be printed.
|
||||
home.activation.uninstallHomeManager =
|
||||
dag.entryBetween [ "installPackages" ] [ "writeBoundary" ] ''
|
||||
if nix-env -q | grep -q "^home-manager$" ; then
|
||||
$DRY_RUN_CMD nix-env -e home-manager
|
||||
|
||||
echo "You can now remove the 'home-manager' packageOverride"
|
||||
echo "or overlay in '~/.config/nixpkgs/', if you want."
|
||||
fi
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue