summarylogtreecommitdiffstats
path: root/nix.install
blob: e07213e24a29dcbc07b9d1ac1d0f74b44e83127d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
install_info() {
  echo "Nix is installed but no configuration has been done to make it work."
  echo "You may wish to install the archlinux-nix package from AUR to help set"
  echo "things up."
  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 config dir"
  echo "   # rm -r /etc/nix"
  echo
  echo "3. you may also want to delete nix-related files from users' home dirs"
  echo "   # rm -r /root/.nix-* /home/*/.nix-*"
  echo
}

post_install() {
  install_info
}

post_remove() {
  remove_info
}