all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Run a system command in home configuration file
@ 2022-02-25 10:08 Reza Housseini
  2022-03-08 10:33 ` Ludovic Courtès
  0 siblings, 1 reply; 4+ messages in thread
From: Reza Housseini @ 2022-02-25 10:08 UTC (permalink / raw)
  To: help-guix

Hello guix

I want to run a system command and use the output inside my ssh config
file. Below is the service configuration I'm talking about and my current
implementation which does not work, probably because the command is run
from the daemon, but I need it to run from the current user. Has anyone an
idea how to achieve this?

(simple-service 'ssh-config
 home-files-service-type
 (list `("ssh/config"
 ,(mixed-text-file "config" "
Host *
  IdentityAgent " #~(system* #$(file-append gnupg "/bin/gpgconf")
"--list-dirs" "agent-ssh-socket") "
"))))

Thanks and cheers,
Reza

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-03-09  7:41 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-02-25 10:08 Run a system command in home configuration file Reza Housseini
2022-03-08 10:33 ` Ludovic Courtès
2022-03-08 14:38   ` Reza Housseini
2022-03-09  7:37     ` Efraim Flashner

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.