From 6596e9a0b7387356f8f32a6dbdec20d5f4cea0aa Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Mon, 4 Nov 2024 01:34:43 +0100 Subject: [PATCH] Uninstall nixpkgs only after install --- scripts/lib/action.fish | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/lib/action.fish b/scripts/lib/action.fish index 84aede26..359ae71c 100644 --- a/scripts/lib/action.fish +++ b/scripts/lib/action.fish @@ -20,9 +20,8 @@ function runActionSetup -V dir end function disposeAction - runHook actionPostRun || true - and uninstallNixPkgs and sudo git config remove-section --system safe || true + runHook actionPostRun || true end function runAction -V dir @@ -62,6 +61,7 @@ function runSetupUserAction -V dir and sudo --preserve-env --set-home --user "$name" $cmdline disposeAction + uninstallNixPkgs rm "$sudoConfig" userdel -rf "$name" end