From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id IE7IMpaNGWTr8wAASxT56A (envelope-from ) for ; Tue, 21 Mar 2023 11:57:26 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id kJTVMpaNGWReMgAA9RJhRA (envelope-from ) for ; Tue, 21 Mar 2023 11:57:26 +0100 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 821CD47FEB for ; Tue, 21 Mar 2023 11:57:26 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=trop.in header.s=gm1 header.b=P5hPwJw6; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1679396246; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=kEnsJgE3DRHjFFS1COeMY+A63DIZcMwsQJjMqAoycAY=; b=JNDDrImGzjdaar4kd4EhaOLu50kQ27UAMSciiTOBJdKhSnYllIJbamX18oV4kP5dT1urAe LjrWyp55TGIjzPNmUEUGZoCLBkDxWVpcAyGSwthVajNslLepRPvv17mhypt1OqS6H8cMIt 5dvNBTdk9t55BNRE49HJj67IzZ9f4Ca+GN2wyJOBGkdVQk43W0c52N2NQRb2MSDIiD3V7D bUPoHR2gyN9miGVXp7ab5tdG6wW89zKr2JyfYTYsEZ2SxEy8ukP1VoPMEBCzFPdn4p+lh1 aoOUMe6Lq36vg5MdNNKnkwqoWNVj1JvyasWYfvwY+l2loQJ2Z5rwS/cVox1Plw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=trop.in header.s=gm1 header.b=P5hPwJw6; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1679396246; a=rsa-sha256; cv=none; b=INvZzrMr3sCqXfS/TYiRuBaTAS4NEni1oPqppo4RRa5BwXiBcebLOGRVgmniiguUOVJ/Yj ApWd/D21QOeSply/MYyRPqWUzRb1wYR+rM6jyev5YCJMYIEr5YT+2lTMH8BOTPw7Ivz5XC 4up84TukRrXqDruaEQAbD2TAr8emKyjmEkELxmTR88iUQUTSop83qWswMIoo+A1Irk3vnM z9Am5FQbVme2yH1pqLtttgiIXn57ZDdQd53knNLUI8lpi+qX9I9GijVM1z0bMf7aBSUkUI armnXbJ9sBKBKjfKKXMk596sv4io5Ti/haXmfIYGwI/867Vw56LdubU+ovRSjw== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1peZfr-0007pI-TS; Tue, 21 Mar 2023 06:57:03 -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 1peZfq-0007p3-KV for guix-patches@gnu.org; Tue, 21 Mar 2023 06:57:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1peZfq-00066F-Bl for guix-patches@gnu.org; Tue, 21 Mar 2023 06:57:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1peZfp-0006YN-UL for guix-patches@gnu.org; Tue, 21 Mar 2023 06:57:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#62274] [PATCH] home: 'home-environment-with-provenance' uses the HE location info. Resent-From: Andrew Tropin Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 21 Mar 2023 10:57:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 62274 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Sergey Trofimov , Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 62274@debbugs.gnu.org, paren@disroot.org Received: via spool by 62274-submit@debbugs.gnu.org id=B62274.167939619525156 (code B ref 62274); Tue, 21 Mar 2023 10:57:01 +0000 Received: (at 62274) by debbugs.gnu.org; 21 Mar 2023 10:56:35 +0000 Received: from localhost ([127.0.0.1]:57729 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1peZfO-0006Xg-Ku for submit@debbugs.gnu.org; Tue, 21 Mar 2023 06:56:34 -0400 Received: from relay10.mail.gandi.net ([217.70.178.230]:47813) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1peZfL-0006XQ-Ar for 62274@debbugs.gnu.org; Tue, 21 Mar 2023 06:56:33 -0400 Received: (Authenticated sender: andrew@trop.in) by mail.gandi.net (Postfix) with ESMTPSA id 5115A24000C; Tue, 21 Mar 2023 10:56:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=trop.in; s=gm1; t=1679396184; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=kEnsJgE3DRHjFFS1COeMY+A63DIZcMwsQJjMqAoycAY=; b=P5hPwJw65a/MshbPLZ8eVb/2wrXUd8/spaSt5ihjDp1DkXLNYn4Kh1GzLNf6sY1Qidhkp8 tfOelwd7jI5uzcCxWW2C5zPXFVe6ozWEJgmDjZSdDVrxDCSMDYfzDVeZn5ZVX5DDALctK8 KvhMq9Fe3wd7Z23hEjxuH0UtOEfn8cBIcJHVvmaEuS34eXDEs/dpAm4ekAgY6bYtEXWH9f Iyd9L6VvAvvIn0QxrS9bnvhofZVFO+RuZCHsT9CCh0P4cN5hTnapHZ+bQX1oG7hEvxyqcP fa4bbrkSz28bhPvsIFQHUP3iJTeT4VRImimwiRbn9k5qiU/Nvzk9DJ9dyw502w== From: Andrew Tropin In-Reply-To: <871qljs0ju.fsf@sarg.org.ru> References: <20230319154537.30463-1-sarg@sarg.org.ru> <87bkknl443.fsf@gnu.org> <871qljs0ju.fsf@sarg.org.ru> Date: Tue, 21 Mar 2023 14:56:18 +0400 Message-ID: <87edpiz831.fsf@trop.in> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: X-Migadu-Queue-Id: 821CD47FEB X-Spam-Score: -4.75 X-Migadu-Spam-Score: -4.75 X-Migadu-Scanner: scn0.migadu.com List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-TUID: //cvDElpG8DJ --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 2023-03-20 20:03, Sergey Trofimov wrote: > Hi Ludovic, > >> Hi Sergey and all, >> >> Sergey Trofimov skribis: >> >>> * gnu/home.scm (home-environment-with-provenance): Make=20 >>> `config-file` >>> optional, with the default taken from the HE location info. >> >> [...] >> >>> +(define* (home-environment-with-provenance he >>> + #:optional >>> + (config-file >>> +=20 >>> (home-environment-configuration-file >>> + he))) >> >> AFAICS, there=E2=80=99s only one call site for >> =E2=80=98home-environment-with-provenance=E2=80=99, and it passes two ar= guments.=20 >> Thus, >> the default value added by this patch will never be used. >> >> Am I missing something? > > You're right, the new signature is not used anywhere yet. Though=20 > I'm working on a patch to embed home profiles in disk images=20 > produced with `guix system image`. That's where this method comes=20 > handy, see example usage: > > (image > (inherit efi-disk-image) > (operating-system (operating-system-with-provenance (load=20 > "./system.scm"))) > (inputs > `(("guix-home" > ,(home-environment-with-provenance (load "./home.scm"))))) > (partition-table-type 'gpt) > (volatile-root? #false)) Also, take a look at this thread: https://yhetil.org/63960cf762aec1ed2c4182f49cac66bc37fce2aa.camel@rdmp.org and this prototype: https://git.sr.ht/~abcdw/rde/tree/044de83e980b7038b87d27a090aef24229df85eb/= src/gnu/services/home.scm#L1 It can be related to what you want to achieve, whithout modifying image-related code. =2D-=20 Best regards, Andrew Tropin --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEKEGaxlA4dEDH6S/6IgjSCVjB3rAFAmQZjVIACgkQIgjSCVjB 3rCtmA//dp9t4evjVe5y/q7dRtDQVzp4fdlkdnYRl6yHvTnROtgAi8gywOj11PYF 5gaSowjFy21Jv2N+vBINAW0IRQNTC01Z07l/GN9AGcfMDEfqsEZaIw75oHtgaNLE kRB4JvK8+Fi7CAxTFO5yWXHvSO8kiWKDuoD3ivVQitguAR1l0tWlKXMV1lS5ezPW SlkwQNBU8V70wLxBNhyyOgWelextgEm+TF7fd67ua6SvP8SIaXLF4csLil5ra5bC TjSKPiOR0ovPiBu6tW9BCRPIlWJK4aWaZAKh1KilTuNndxJ/LESoq4zFGEhGFQBE 0HAfjfPmhrh+t0AW+DJJSrIzMgyooH5z0wSIk1puwsBGXciKOiz/m1meIO+E8LiY i0RVn0AOvqd1SN00NeQJ6pIRpXXTgxMBT/H+TTQgplZD2TLPn1bkWw0yw6zGUv5v 9QSym/gyurhab4KJfwapK9+2At/lku6Xlbnv9z2Z5KCUJ9cTbe7gbo+p4K5r1UAY YQHsJDTIhLcePwZ4YDFEZQfIFqAv5FV+kUoNK6rW/TmaPs8af97+NOGzUFpE4RKL I4fEhHcTGbsdS1Mu0Qu+Ff4StwL0O7l7/fzIINpCWefHNNbU+bEowxWqcGiNwNAt bys2qYHTaKsj/kag9nfceFEewmoz8BC8vSX/DadB9LR//E40nu0= =MbmM -----END PGP SIGNATURE----- --=-=-=--