mirror of
https://github.com/bertptrs/aur.git
synced 2025-12-25 20:40:32 +01:00
50 lines
1.2 KiB
Plaintext
50 lines
1.2 KiB
Plaintext
install_info() {
|
|
echo "Nix is installed and configured, and the nix-daemon should be running. To check,"
|
|
echo "you can run:"
|
|
echo
|
|
echo " archlinux-nix status"
|
|
echo
|
|
echo "Each user's environment is setup on login. Alternatively, you can execute the"
|
|
echo "following to avoid having to log back in:"
|
|
echo
|
|
echo " source /etc/profile.d/nix{,-daemon}.sh"
|
|
echo
|
|
echo "For more information on how to use nix, check out Part III of the Nix Manual:"
|
|
echo
|
|
echo " https://nixos.org/nix/manual/#chap-package-management"
|
|
echo
|
|
}
|
|
|
|
remove_info() {
|
|
echo "You may wish to do some clean up:"
|
|
echo
|
|
echo "1. delete /nix folder"
|
|
echo " # rm -r /nix"
|
|
echo
|
|
echo "2. delete the build users (if any)"
|
|
echo " # archlinux-nix delete-build-group"
|
|
echo
|
|
echo "3. delete the config dir"
|
|
echo " # rm -r /etc/nix"
|
|
echo
|
|
echo "4. uninstall the archlinux-nix tool"
|
|
echo " pacman -R archlinux-nix"
|
|
echo
|
|
echo "5. you may also want to delete nix-related files from users' home dirs"
|
|
echo " # rm -r /root/.nix-* /home/*/.nix-*"
|
|
echo
|
|
}
|
|
|
|
post_install() {
|
|
archlinux-nix bootstrap
|
|
install_info
|
|
}
|
|
|
|
post_upgrade() {
|
|
archlinux-nix bootstrap
|
|
}
|
|
|
|
post_remove() {
|
|
remove_info
|
|
}
|