From 6a3a8290372184a3b053890d177982ec4394af05 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 | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/scripts/lib/action.fish b/scripts/lib/action.fish index 293d0a16..98e641a0 100644 --- a/scripts/lib/action.fish +++ b/scripts/lib/action.fish @@ -21,10 +21,8 @@ end function disposeAction -V dir source "$dir/hooks.fish" - source "$dir/nix.fish" - runHook actionPostRun || true - and uninstallNixPkgs and sudo git config remove-section --system safe || true + runHook actionPostRun || true end function runAction -V dir @@ -66,6 +64,7 @@ function runSetupUserAction -V dir and sudo --preserve-env --set-home --user "$name" $cmdline disposeAction + uninstallNixPkgs rm "$sudoConfig" userdel -rf "$name" end