# After booting, register the contents of the Nix store in the Nix
# database.
if [ -f /nix-path-registration ]; then
  /nix/store/1fp0ggfyfgn6ydsgc8sdwqv5n5gn9nal-nix-2.18.8/bin/nix-store --load-db < /nix-path-registration &&
  rm /nix-path-registration
fi

# nixos-rebuild also requires a "system" profile
/nix/store/1fp0ggfyfgn6ydsgc8sdwqv5n5gn9nal-nix-2.18.8/bin/nix-env -p /nix/var/nix/profiles/system --set /run/current-system


