Uninstall nixpkgs only after install
This commit is contained in:
parent
f97d7645cf
commit
6596e9a0b7
1 changed files with 2 additions and 2 deletions
|
@ -20,9 +20,8 @@ function runActionSetup -V dir
|
||||||
end
|
end
|
||||||
|
|
||||||
function disposeAction
|
function disposeAction
|
||||||
runHook actionPostRun || true
|
|
||||||
and uninstallNixPkgs
|
|
||||||
and sudo git config remove-section --system safe || true
|
and sudo git config remove-section --system safe || true
|
||||||
|
runHook actionPostRun || true
|
||||||
end
|
end
|
||||||
|
|
||||||
function runAction -V dir
|
function runAction -V dir
|
||||||
|
@ -62,6 +61,7 @@ function runSetupUserAction -V dir
|
||||||
|
|
||||||
and sudo --preserve-env --set-home --user "$name" $cmdline
|
and sudo --preserve-env --set-home --user "$name" $cmdline
|
||||||
disposeAction
|
disposeAction
|
||||||
|
uninstallNixPkgs
|
||||||
rm "$sudoConfig"
|
rm "$sudoConfig"
|
||||||
userdel -rf "$name"
|
userdel -rf "$name"
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue