blob: 18cf0c36ffd543a4e7db57ed51d95affdf57f665 (
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
|
_store_load() {
cp -al /nix/var/pacman/store/* /nix/store/
nix-store --init
nix-store --load-db < /nix/var/pacman/db
systemctl daemon-reload
}
_daemon_info() {
echo "To start the nix daemon, execute one of the following:"
echo
echo " systemctl enable nix-daemon.socket # Sets the daemon to start on next boot"
echo " systemctl enable --now nix-daemon.socket # Starts now and on next boot too"
echo
echo "Also, if this is a new install, you need to start a new login shell or otherwise"
echo
echo " source /etc/profile.d/nix-daemon.sh"
echo
echo "Once your environment is set-up, you will need to add some channels. You can see how"
echo "to do that here:"
echo " https://nixos.org/nix/manual/#sec-channels"
}
post_install() {
_store_load
_daemon_info
}
post_upgrade() {
_store_load
_daemon_info
}
|