From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pierre Neidhardt Subject: Re: Install doc + templates overhaul Date: Mon, 21 Jan 2019 22:08:01 +0100 Message-ID: <87zhrtk9ce.fsf@ambrevar.xyz> References: <87zhrw7b94.fsf@ambrevar.xyz> <87ef96jerh.fsf@gnu.org> <875zuiksyo.fsf@ambrevar.xyz> <874la2ksx6.fsf@ambrevar.xyz> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([209.51.188.92]:39555) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1glgng-0005bC-Bm for guix-devel@gnu.org; Mon, 21 Jan 2019 16:08:09 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1glgnf-00070J-7Q for guix-devel@gnu.org; Mon, 21 Jan 2019 16:08:08 -0500 In-reply-to: <874la2ksx6.fsf@ambrevar.xyz> 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+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Ludovic =?utf-8?Q?Court=C3=A8s?= Cc: Guix-devel --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable I'm trying to set the default for user. Here is the record from installer/user.scm: =2D-8<---------------cut here---------------start------------->8--- (define-record-type* user make-user user? (name user-name) (group user-group (default "users")) (home-directory user-home-directory)) =2D-8<---------------cut here---------------end--------------->8--- The following does not work: =2D-8<---------------cut here---------------start------------->8--- (define-record-type* user make-user user? (name user-name) (group user-group (default "users")) (home-directory user-home-directory (default (string-append "/home/" name)))) =2D-8<---------------cut here---------------end--------------->8--- The define-record-type* does not seem to allow the record field initializat= ion to refer to itself. Is there a way around it? =2D-=20 Pierre Neidhardt https://ambrevar.xyz/ --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEUPM+LlsMPZAEJKvom9z0l6S7zH8FAlxGNLEACgkQm9z0l6S7 zH/c3Af9HVqbI5aYFY0KfkL3Ji/KHcPcBK1xba82vH3+2US6DbMqSzN2m30zpBPw skRN4/MMCEroUR0aG4uan9enb3cBvgo2G+wKlxEHHWg0F93jNpJqu8mKRLMPK6o5 uQV+/EAbSRKipxmvUGtU8k9NEfzOVhS6LhwQv7Vwx3jjVCGGfP/xaePru6/UZ/sg +tXWoReRPDcKWxncSxhGZ/T8MUE0Jgl2H6DQRzN8vB3VSo/rLZK/mYUvbydgYY9n ZHQJ1uymjYx/2sS9GnJhaqgH/xyqMk3wmLagLfhICLBVIRY5T9jLkHEYatNpscng UsdHoixO6lJmPL1aGlCO/Lsmo9LKUA== =lW21 -----END PGP SIGNATURE----- --=-=-=--