From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id 4MXtOX+oDF9MVAAA0tVLHw (envelope-from ) for ; Mon, 13 Jul 2020 18:31:27 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id 6MbUNX+oDF/3OQAAB5/wlQ (envelope-from ) for ; Mon, 13 Jul 2020 18:31:27 +0000 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 7DA74940276 for ; Mon, 13 Jul 2020 18:31:27 +0000 (UTC) Received: from localhost ([::1]:41810 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jv3Ec-0001W7-FG for larch@yhetil.org; Mon, 13 Jul 2020 14:31:26 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39704) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jv3EN-0001Vv-OA for guix-devel@gnu.org; Mon, 13 Jul 2020 14:31:11 -0400 Received: from flashner.co.il ([178.62.234.194]:52714) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jv3EH-000489-TM for guix-devel@gnu.org; Mon, 13 Jul 2020 14:31:11 -0400 Received: from localhost (unknown [141.226.9.208]) by flashner.co.il (Postfix) with ESMTPSA id 729BF4008C; Mon, 13 Jul 2020 18:31:04 +0000 (UTC) Date: Mon, 13 Jul 2020 21:30:31 +0300 From: Efraim Flashner To: Jesse Gibbons Subject: Re: How to package inputrc Message-ID: <20200713183031.GC10256@E5400> References: <8e67dfb8-0e81-5cb0-50fe-202aecdd6854@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="OBd5C1Lgu00Gd/Tn" Content-Disposition: inline In-Reply-To: <8e67dfb8-0e81-5cb0-50fe-202aecdd6854@gmail.com> X-PGP-Key-ID: 0x41AAE7DCCA3D8351 X-PGP-Key: https://flashner.co.il/~efraim/efraim_flashner.asc X-PGP-Fingerprint: A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Received-SPF: pass client-ip=178.62.234.194; envelope-from=efraim@flashner.co.il; helo=flashner.co.il X-detected-operating-system: by eggs.gnu.org: First seen = 2020/07/13 14:31:04 X-ACL-Warn: Detected OS = ??? X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, 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.23 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: guix-devel@gnu.org Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Spam-Score: 0.69 X-TUID: kDXXLfVIM7tK --OBd5C1Lgu00Gd/Tn Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Jul 13, 2020 at 11:26:59AM -0600, Jesse Gibbons wrote: > > In order to achieve this more elegant I could write a simple service to > > copy the file to /etc. Another option would be a small package. >=20 > I like the service idea a lot better. It appears to me that Guix is desig= ned for services to deal with the more customizable parts of the installati= on, whereas packages are standard. /etc/inputrc is one of those things each= system admin would want to customize, just like most of the things in /etc. I'll go ahead and link to my os-release service here. It's a small service that creates an /etc/os-release file. The service in action=C2=B9 a= nd the actual service itself. It would also be possible to create an even simpler file than the one I made here=C2=B2, with something like this: (define %inputrc (plain-file "inputrc" "set show-mode-in-prompt on\n" "set enable-bracketed-paste on\n" "set editing-mode vi\n" "Control-l: clear-screen\n" "set bell-style visible\n")) =C2=B9 https://gitlab.com/Efraim/guix-config/-/blob/master/E5400_config.scm= #L68 =C2=B2 https://gitlab.com/Efraim/guix-config/-/blob/master/config/os-releas= e.scm --=20 Efraim Flashner =D7=90=D7=A4=D7=A8=D7=99=D7=9D = =D7=A4=D7=9C=D7=A9=D7=A0=D7=A8 GPG key =3D A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Confidentiality cannot be guaranteed on emails sent or received unencrypted --OBd5C1Lgu00Gd/Tn Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAl8MqEQACgkQQarn3Mo9 g1EonA/7BtzzVhRxs1yOwVoooJ6hiXjTj8jy0YeGAqJ4KIluqN3WctV2gYH/TG37 8uIkln0xZSl9R2dfaso1JoRUrA8uy+cluhIYp0Mv/aIimRv3jBiTTjypce5JDog6 jlRUur8paf59vzhqqFXFm+aXiL6CJ/NU82fLH1h/ebBHGA5SixOaFlbkWA710q0A GbjkjBZI8frex8vQO4IuRleQDSRyancOXYLFAQkBjahuQyGhyz8U5hsrnmJSiMOD IlrEK6nTAni9mFiEPmX/B8z+RYQMb4NWrHGwsAmiEugSikkHOi/dFJj2CbNd4Wty 79vMinufky7QJoFEYA+Kew3lNJxUxT543X0VTKD6oKYqpK2h0+S3gIm8F1E5K2pP 4QxOB/dLxBltO5ORqNlPrBwAa7uYpKP5V0GWuKZAh9KqlsBmezZmHn3gkRQzFPm2 NrOyFacOKEj75tnc+RGl52/yopxgqaYLSJYnGez8sQAIqMY0lYdlTwJ7cMIB9Xl/ 33KOflfp/mDEGAwbaSwIWX+pT2hQO9i14PdUnPPc7YWZiQ2E2R9eS9VNPlx87uYX MysY/9m+szmX+GJkjz4fxyXFCEIheOhaC94j+HINUnnvc0YqZNZGC24XRpWrs5ir XBXdgzGtsROzXrffTLDRH+6uKU1VYPVN6UNbteOxzxVECZ5vJJc= =HR8R -----END PGP SIGNATURE----- --OBd5C1Lgu00Gd/Tn--