From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id OKdeDVQo42ASuAAAgWs5BA (envelope-from ) for ; Mon, 05 Jul 2021 17:42:12 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id aAkSCVQo42BVXAAA1q6Kng (envelope-from ) for ; Mon, 05 Jul 2021 15:42:12 +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 DD4F61B6E0 for ; Mon, 5 Jul 2021 17:42:11 +0200 (CEST) Received: from localhost ([::1]:43496 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m0Qja-00049r-Tp for larch@yhetil.org; Mon, 05 Jul 2021 11:42:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58876) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m0QjS-000489-O1 for guix-patches@gnu.org; Mon, 05 Jul 2021 11:42:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:34968) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m0QjS-0000F1-GR for guix-patches@gnu.org; Mon, 05 Jul 2021 11:42:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1m0QjS-0006mE-2F for guix-patches@gnu.org; Mon, 05 Jul 2021 11:42:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#49419] [PATCH 3/4] home-services: Add home-provenance-service-type References: <87y2akhiz1.fsf@trop.in> In-Reply-To: <87y2akhiz1.fsf@trop.in> Resent-From: Andrew Tropin Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 05 Jul 2021 15:42:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49419 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 49419@debbugs.gnu.org Received: via spool by 49419-submit@debbugs.gnu.org id=B49419.162549967825976 (code B ref 49419); Mon, 05 Jul 2021 15:42:02 +0000 Received: (at 49419) by debbugs.gnu.org; 5 Jul 2021 15:41:18 +0000 Received: from localhost ([127.0.0.1]:46511 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m0Qij-0006ku-WA for submit@debbugs.gnu.org; Mon, 05 Jul 2021 11:41:18 -0400 Received: from mail-lj1-f171.google.com ([209.85.208.171]:37430) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m0Qii-0006kh-PO for 49419@debbugs.gnu.org; Mon, 05 Jul 2021 11:41:17 -0400 Received: by mail-lj1-f171.google.com with SMTP id k8so25141055lja.4 for <49419@debbugs.gnu.org>; Mon, 05 Jul 2021 08:41:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=trop-in.20150623.gappssmtp.com; s=20150623; h=from:to:subject:date:message-id:mime-version; bh=bdHvBm0ThHKYKK9a/VSWh3+Kmiw7MCeF7dEvTLC4654=; b=fxbFZOm13fbaTFuGbxMle/FePkrbLm4YDSrGO7dsXaqlJw+UHdfNSI+D0lVxZmRqZH SPiSgXjboPsZeK/b+po65BpGNsb1J6PTtOQF5qEoZfljsWUGUmpTj2A40XyGb9P/reXJ GwV58MZlIjUZmX/hlvb1cC7l2y02ScstZZyPg5Fny+fMz6kX0gr1URCFv26youbcpc6/ UAsbT/3b5Gsws0I5SRmyqqaWWikOiWWV4zHBb3b6+mht4+WKMJBAQTdZxesS88AfKlBS 3DFclBRLMmEfCuCHtT9BnTUxvBFVSWUKVEnhApZJGYk8OUyqEi4jiqlfw23iws7QRC4p iOtA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version; bh=bdHvBm0ThHKYKK9a/VSWh3+Kmiw7MCeF7dEvTLC4654=; b=GrFJ9z+pt6mnYVGHSocH/RlStoakVt3yTNSLsvlPHm0SCihZRhxvLYd9/WnOQjCS+P wVORAEX3ui7wNwbhkbKdNJ37uaZ71SY74s2s7umWeZuYOfUlVI+fTIdaU2+8stJEOwbX IO9zIR4pW1Lr4WH56S1O7bADS5+Lwo9/mEvNSbyGjy2fw3d9Oz2u37jjJ5W7uYTeGj64 NKkJDzFbRkq4qF6FrAx52vvrLi2PO/3gGb7JIlbOn4ddeDqo4w0sWQrf876UvXSFqlPn LzB8Z135gwjd3M9Vqbo/VSsr4bcGvlHTZZlOHvhjaxmx2BTbXNDGTeQ0KhsVpwdAGdRw IKnQ== X-Gm-Message-State: AOAM530Ur2idepbLeTAmJYTSvs3cLhu3TqdlQdAMnxxvcQJnmbmZpMTG OoL0SdTj2vWgCKfzEpu4x0ufrBoVkyS8Ew== X-Google-Smtp-Source: ABdhPJzI6pN7sspy+bXsrrketO/YK9Fbd8nEIWty4gWfH24c6Gn0j++XPkxXmEafV8cPYqdOkVpYGA== X-Received: by 2002:a2e:3e07:: with SMTP id l7mr11475368lja.131.1625499670354; Mon, 05 Jul 2021 08:41:10 -0700 (PDT) Received: from ixy ([109.252.117.164]) by smtp.gmail.com with ESMTPSA id u2sm1119646lff.37.2021.07.05.08.41.08 for <49419@debbugs.gnu.org> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Jul 2021 08:41:09 -0700 (PDT) From: Andrew Tropin Date: Mon, 05 Jul 2021 18:41:07 +0300 Message-ID: <87sg0ship8.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: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1625499732; 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: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=o94QMObwUU2M/eZv+d6T6FwowcH5jvQfS/9SKHj0Wuk=; b=WzcidEfssobwznOGx3aUkfIkNF6SPmmcjex30Xzu6uDg7/ubw3kJo4v3fGBw1sDVySHo/Y v4WS08UPhm2XFX6Scw841s963vriafFc6j4K33NgiQ4rmdY17zIZDPVmOUgJQXa/07FplC AkytTqI5eqr2r5zHT36vzBcVKqdOzOTleP+7CtC9GUBj0ZWTnjkxH9ljcH/inYFVH7KWlS qUztDpGUppro04NGYgGkBu33qlwyQi+PBaeOzX3B9i1SH0g2Mba+9e9heijkYIpstLgiIe O2AhRg5q6omIDdqbwv4UUsBFJ34NBmXNNHJhx7s65exNbFLYERDYBkOHuqjQVQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1625499732; a=rsa-sha256; cv=none; b=fy1HmyiHHTpqEQyAYrItbGHvFL+3DQ78SQWppQqnjex01GZVlpF6VliUx237XATXWrpDoz /SNMN5/XAT8SU/1VPmmrE257pdl95OXL5KHAcGORhgxXNsVYmFaamvS4Kn4vzh5QDUAfhU /vZkkUG+oNgEdZAgTMPbR38uX1dHVO3jfRSpGkcuNrTP0zmm+eOBdzZLmsL18vNVg44ncJ b3tBG1CGSs9x9TFMdLyUpeNwyp4uvm2ie/cvC5Npod0BTnDcZhCikc//SA/fBpoJgWJ1Vf NY/olhk1kLnKU5I+vANNSNCASEgYW86BmKc1sxDJnYK6UbFKxmJlfQWCcWFA1Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=trop-in.20150623.gappssmtp.com header.s=20150623 header.b=fxbFZOm1; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: -1.01 Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=trop-in.20150623.gappssmtp.com header.s=20150623 header.b=fxbFZOm1; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: DD4F61B6E0 X-Spam-Score: -1.01 X-Migadu-Scanner: scn0.migadu.com X-TUID: EK2CTiEYTY2N --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable * gnu/home-services.scm (home-provenance-service-type, sexp->home-provenanc= e, home-provenance): New variables. =2D-- gnu/home-services.scm | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/gnu/home-services.scm b/gnu/home-services.scm index 002a003d65..20a9537650 100644 =2D-- a/gnu/home-services.scm +++ b/gnu/home-services.scm @@ -38,7 +38,10 @@ home-files-service-type home-run-on-first-login-service-type home-activation-service-type =2D home-run-on-change-service-type) + home-run-on-change-service-type + home-provenance-service-type + + fold-home-service-types) =20 #:re-export (service service-type @@ -419,3 +422,25 @@ G-expressions to run if the specified files have chang= ed since the last generation. The extension should be a list of lists where the first element is the pattern for file or directory that expected to be changed, and the second element is the G-expression to be evaluated."))) + + +;;; +;;; Provenance tracking. +;;; + +(define home-provenance-service-type + (service-type + (name 'home-provenance) + (extensions + (list (service-extension + home-service-type + (service-extension-compute + (first (service-type-extensions provenance-service-type)))))) + (default-value #f) ;the HE config file + (description "\ +Store provenance information about the home environment in the home +environment itself: the channels used when building the home +environment, and its configuration file, when available."))) + +(define sexp->home-provenance sexp->system-provenance) +(define home-provenance system-provenance) =2D-=20 2.32.0 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQJDBAEBCgAtFiEEKEGaxlA4dEDH6S/6IgjSCVjB3rAFAmDjKBMPHGFuZHJld0B0 cm9wLmluAAoJECII0glYwd6wFgQP/25DCZPMwKYLNPaIz+QqKQODiND/L+UK+UMS arAdMlZIEQoDaUXU+5e7ekzxhIwOXcF1MIXAjeGX/VogNDRFmk8btSUndXlcBr4f bjpPn1DOof8QwZIZJ1/TKcC+pz7uNA4s0q6/MjZLn4XxJHz4eaqMip+CnKUBTIIQ FTO0Z9KMFUhwDNIprBCM1t/JpGlDLdCRAIxeV6LCoYCOWskEVLAa76JrrJ7kI9p3 U4uezVeLlVCET6RKgy8IkZM6w9e+Gk8VFz4nAwJ2FpdLxYir8J5wC0pCkImhrOR5 g2ksdmLLS7u88jKdIfHVCrGqRQ7kA4MLVhHzCXRnu9ZlZ/wm8gz4NYWVPeT173VK lFYcXTi83B4MCxuzj3JXijNcWDQK1Q814k6PwhqHoxLziRDCyvPgwwwRSpPTtZRQ ChC8FB8C4bc/vA4KEJA9wwJjydUMpkZ3q3dvzZBqKFpzbIJKygrTUToUk7dAjo96 fYBzqVwqfECvVNERnelc3Vrak4Ad55cZLWiQ/62U7pp2ZprlUJg4hjeycihmvK3Q ciQZ8G5gWGx8fhR8k/BUcZSAgp34wy4sRaXPU19irPgpuAWZPGub5DM2t5CIVJh3 hsF5RKJM5COmAB2XDnsppkSpdC6H/67jCT1aNUyqUBQ0wBMexMG26R+2nOdiSLGB KeqwmUsw =EObI -----END PGP SIGNATURE----- --=-=-=--