1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-27 13:39:46 +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:
Robert Helgesson 2018-11-04 09:58:00 +01:00
parent 8d4c65f259
commit 05c93ff3ae
No known key found for this signature in database
GPG key ID: 36BDAA14C2797E89

View file

@ -39,17 +39,5 @@ in
inherit (cfg) path; 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
'';
}; };
} }