machine: Allow non-root users to deploy.
authorJakob L. Kreuze <zerodaysfordays@sdf.lonestar.org>
Thu, 15 Aug 2019 08:05:04 +0000 (04:05 -0400)
committerChristopher Lemmer Webber <cwebber@dustycloud.org>
Thu, 15 Aug 2019 11:43:03 +0000 (07:43 -0400)
commit5ea7537b9a650cfa525401c19879080a9cf42e13
tree2bdb8f08035ef9833c95c251bf47d6e84cef3152
parent03cbd94d4880f1bb55d98907b48396e5120c1733
machine: Allow non-root users to deploy.

* doc/guix.texi (Invoking guix deploy): Add section describing
prerequisites for deploying as a non-root user.
* guix/remote.scm (remote-pipe-for-gexp): New optional 'become-command'
argument.
(%remote-eval): New optional 'become-command' argument.
(remote-eval): New 'become-command' keyword argument.
* guix/ssh.scm (remote-inferior): New optional 'become-command'
argument.
(inferior-remote-eval): New optional 'become-command' argument.
(remote-authorize-signing-key): New optional 'become-command' argument.
* gnu/machine/ssh.scm (machine-become-command): New variable.
(managed-host-remote-eval): Invoke 'remote-eval' with the
'#:become-command' keyword.
(deploy-managed-host): Invoke 'remote-authorize-signing-key' with the
'#:become-command' keyword.
doc/guix.texi
gnu/machine/ssh.scm
guix/remote.scm
guix/ssh.scm