diff --git a/guix/store.scm b/guix/store.scm
index 9aafb332dca20a290a734cf0be8ef631dd63d4b6..67620a1767a2fbde9cf30c1860c149fa741f4de4 100644
--- a/guix/store.scm
+++ b/guix/store.scm
@@ -424,6 +424,11 @@ (define-operation (build-derivations (string-list derivations))
 Return #t on success."
   boolean)
 
+(define-operation (add-temp-root (store-path path))
+  "Make PATH a temporary root for the duration of the current session.
+Return #t."
+  boolean)
+
 (define-operation (add-indirect-root (string file-name))
   "Make FILE-NAME an indirect root for the garbage collector; FILE-NAME
 can be anywhere on the file system, but it must be an absolute file