From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id eGIsJtiV62RJaAAAauVa8A:P1 (envelope-from ) for ; Sun, 27 Aug 2023 20:28:40 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id eGIsJtiV62RJaAAAauVa8A (envelope-from ) for ; Sun, 27 Aug 2023 20:28:40 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 551F3451EE for ; Sun, 27 Aug 2023 20:28:40 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=riseup.net header.s=squak header.b=VJnKFh07; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=riseup.net ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1693160920; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=cERx3nnr60KMY0Mj/x9/ouyM6GFqT85T20JyuM6mvh8=; b=fe35TbxIT9JSFw64I7xAE1/5ZsS9MUiGACrecKKxToDy1C4oFt1CPMWTppR8+XscLg6NlO PPVKN17V6thlCXQE7DdgMPmjfNRiDM9NzdUltDekg43/Hvj5lY0B/8FBfwk+gMpX5LcFlt 9gRgDKJYQzvbnody6PR45rKG1zMTOK3pkASnH4qzIBZ/XqQREuyZe2576PrnPgqmwLbjEh ypiteSfvTZg2gGsljJt1R+JbYpweIy3S+giBiCSOIfab6i0bIAqMYMWDvmmMS9YWAukWiC JtDmD2dejy3QxaiOIO2ETmIC7ZF1tfhHebDKzsjfLKO5tig3hxxM7HcuBd4xaQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1693160920; a=rsa-sha256; cv=none; b=Pm4AZrlqIXZBlDxG7wywB+jvrxTlrOlXDBvweF4omdCoxeIo/ky+6um77M8NDGJoPzwY7J 7xNxp2xuKu/psvA2DXt+EkwHweVsD966/KH/qTqFAwxAQRZAoI4PNrOEy7OIVLYtrBwDwu EEKia1r2DL/r+JSWhe1qma+mRI1a1jfqBgF1ONpbYbZG9nfsW/lI/CReh295fJ50c1sgOr IkN0LFxN5ho3R1xoATsKYi/kVNy113iDY1uMVRQDgAWPuegS8/JBZw6kCciWLAAsQh6pRd ZpaCfN4ojVU31GgGLldptUHlsY20klHYGT13RNmwI9P9ARl8TWSd8OZBNrZ5rQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=riseup.net header.s=squak header.b=VJnKFh07; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=riseup.net Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qaKUU-0006gc-M7; Sun, 27 Aug 2023 14:28:02 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qaKUT-0006gN-1X for guix-devel@gnu.org; Sun, 27 Aug 2023 14:28:01 -0400 Received: from mx0.riseup.net ([198.252.153.6]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qaKUQ-0004R6-Gq for guix-devel@gnu.org; Sun, 27 Aug 2023 14:28:00 -0400 Received: from fews02-sea.riseup.net (fews02-sea-pn.riseup.net [10.0.1.112]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx0.riseup.net (Postfix) with ESMTPS id 4RYhy34D6Yz9t2P for ; Sun, 27 Aug 2023 18:27:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1693160875; bh=9MWj0JhAuWx4V3nq0N5cEN34UgQNZAZ0bu+iNUhCv1s=; h=From:To:Subject:Date:From; b=VJnKFh07dHZfNbmym8CQ1o96WvAF82beE+lboIXL+BCO39/owv+aYp1GHjbaJyST8 SWEsY/qLLrLaqj/UTI+HrtUqDq54+kMnG0YH3ZjAyppS95fShmG5u4iZ9l28/oMHXg wE3js0rG50dvryhrAbIfBlEGFNISJqeoxxdBo18I= X-Riseup-User-ID: DE2E9E5BAB4B6D77303D69E459314D92BFBF6640974F673B66E5D0A2D35C812A Received: from [127.0.0.1] (localhost [127.0.0.1]) by fews02-sea.riseup.net (Postfix) with ESMTPSA id 4RYhy30811zFs1V for ; Sun, 27 Aug 2023 18:27:54 +0000 (UTC) From: Distopico To: guix-devel@gnu.org Subject: Guix CLI options through manifest.scm or guix.scm Date: Sun, 27 Aug 2023 13:25:57 -0500 Message-ID: <87pm38bas8.fsf@riseup.net> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Received-SPF: pass client-ip=198.252.153.6; envelope-from=distopico@riseup.net; helo=mx0.riseup.net X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: guix-devel-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -11.84 X-Spam-Score: -11.84 X-Migadu-Queue-Id: 551F3451EE X-Migadu-Scanner: mx1.migadu.com X-TUID: A+HNPjcBa2j9 --=-=-= Content-Type: text/plain 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! --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQFJBAEBCAAzFiEEvYwofabWO6y953lVmAk6gHJUa/MFAmTrlacVHGRpc3RvcGlj b0ByaXNldXAubmV0AAoJEJgJOoByVGvz44sIAI/2VlZxtOAI3OLL8ppS3pi8g62V y/0agEEKiq8pnDZLv3pB6sOEB0tMfZhStXDMk4NNztbhszv2JGSVd7uloAthYHax DvI0g57K1heMo+Us89Drmfr28tsn/KzTx3sklOr2h/snfOSvZvcl/RMJjrxM29A1 z96gtBfdYEe1j4dy4nvpBlmj/h4opVcwgyxFo0euEs1efaZcXKEl1r83WJY+8OVg fUVdvnq3FBqQTmsUH/5LzyHBbtHwnh92rAUFeR+yaO4VjMyI1lcUGydNTyrG4/cX trXdBN/bP5N4OjzPbCCIUw4aS36MjVnmZyp65q45Cabh8+AoB6FmoVDQXNM= =LJ+/ -----END PGP SIGNATURE----- --=-=-=--