Uninstall nixpkgs only after install

This commit is contained in:
Manuel Thalmann 2024-11-04 01:34:43 +01:00
parent f97d7645cf
commit 6596e9a0b7

View file

@ -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