1
0
mirror of https://github.com/nix-community/home-manager synced 2024-06-18 12:38:30 +02: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