unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Guix CLI options through manifest.scm or guix.scm
@ 2023-08-27 18:25 Distopico
  2023-08-27 19:59 ` Liliana Marie Prikler
  2023-09-14  9:38 ` Ludovic Courtès
  0 siblings, 2 replies; 6+ messages in thread
From: Distopico @ 2023-08-27 18:25 UTC (permalink / raw)
  To: guix-devel

[-- Attachment #1: Type: text/plain, Size: 867 bytes --]


Is it possible to define/express CLI options from manifest.scm or
guix.scm? For example, I have

```
guix shell \
     -m manifest.scm \
     --container -F -N -P \
     --share=/opt/android-sdk \
     --share=$HOME/.android/avd \
     --share=$HOME/.gradle/ \
     --preserve='^DISPLAY$' \
     --preserve='^XAUTHORITY$' \
     --preserve='^DBUS_' \
     --expose=$XAUTHORITY \
     --expose=/var/run/dbus
```

Manually invoking this command is not practical, so I have
`scripts/container.sh`, a script to invoke it, but I think it would be
much more practical if it's possible to define it in a configuration
file similar to docker-compose, which allows almost all CLI options to
be set in the configuration file to avoid having an additional
configuration file.

Or perhaps a Guile script instead of a shell script? How do others
handle this here?

Best regards!

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 515 bytes --]

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

end of thread, other threads:[~2023-09-19  0:13 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-08-27 18:25 Guix CLI options through manifest.scm or guix.scm Distopico
2023-08-27 19:59 ` Liliana Marie Prikler
2023-08-29 18:43   ` Distopico
2023-08-29 20:05   ` Distopico
2023-09-14  9:38 ` Ludovic Courtès
2023-09-19  0:12   ` Distopico

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).