Activationscript doesn't know git or docker

That’s what I’m trying to do:

activationScripts={
      script={
      text =''
        git clone https://gitlab.com/docker5348/ros2_main_dev_container ${config.users.users.azrael.home}/projects/main_ros_docker
        docker build -t main_ros:Dockerfile ${config.users.users.azrael.home}/projects/main_ros_docker/
        xhost local:root
    '';
    deps = [];};
    };

Running `sudo nixos-rebuild switch’ will tell the compiler that git and docker aren’t available. What should I do?