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
Failed to generate hash of commit

View file

@ -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
'';
};
}