remote: Use (%daemon-socket-uri) rather than hard-coded path.
authorJakob L. Kreuze <zerodaysfordays@sdf.lonestar.org>
Thu, 15 Aug 2019 08:08:22 +0000 (04:08 -0400)
committerChristopher Lemmer Webber <cwebber@dustycloud.org>
Thu, 15 Aug 2019 11:43:21 +0000 (07:43 -0400)
* guix/remote.scm (remote-eval): Use (%daemon-socket-uri) as the default
value of 'socket-name' rather than hard-coded path.

guix/remote.scm

index d8124e4..ae2fe17 100644 (file)
@@ -106,7 +106,7 @@ result to the current output port using the (guix repl) protocol."
                       (build-locally? #t)
                       (system (%current-system))
                       (module-path %load-path)
-                      (socket-name "/var/guix/daemon-socket/socket")
+                      (socket-name (%daemon-socket-uri))
                       (become-command #f))
   "Evaluate EXP, a gexp, on the host at SESSION, an SSH session.  Ensure that
 all the elements EXP refers to are built and deployed to SESSION beforehand.