Uninstall nixpkgs only after install
This commit is contained in:
parent
be83deff2d
commit
5a966bc940
1 changed files with 2 additions and 3 deletions
|
@ -21,10 +21,8 @@ end
|
||||||
|
|
||||||
function disposeAction -V dir
|
function disposeAction -V dir
|
||||||
source "$dir/hooks.fish"
|
source "$dir/hooks.fish"
|
||||||
source "$dir/nix.fish"
|
|
||||||
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
|
||||||
|
@ -66,6 +64,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