1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-23 11:39:46 +01:00

home-manager: skip manual in uninstall configuration

No need to spend time building a manual when doing the install. Also
helps if the manual, for whatever reason, doesn't build.
This commit is contained in:
Robert Helgesson 2023-07-31 10:02:47 +02:00
parent f58889c07e
commit 729ab77f9e
No known key found for this signature in database
GPG key ID: 36BDAA14C2797E89

View file

@ -798,6 +798,7 @@ function doUninstall() {
echo "{ lib, ... }: {" > "$HOME_MANAGER_CONFIG"
echo " home.file = lib.mkForce {};" >> "$HOME_MANAGER_CONFIG"
echo " home.stateVersion = \"18.09\";" >> "$HOME_MANAGER_CONFIG"
echo " manual.manpages.enable = false;" >> "$HOME_MANAGER_CONFIG"
echo "}" >> "$HOME_MANAGER_CONFIG"
doSwitch
$DRY_RUN_CMD $REMOVE_CMD home-manager-path || true