From patchwork Sat Oct 23 18:04:46 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Oleg Pykhalov X-Patchwork-Id: 410 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id A1D0E27BBE3; Sat, 23 Oct 2021 19:06:19 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2, SPF_HELO_PASS,T_DKIM_INVALID,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 6DCDB27BBE1 for ; Sat, 23 Oct 2021 19:06:19 +0100 (BST) Received: from localhost ([::1]:56958 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1meLPO-0003B2-Gi for patchwork@mira.cbaines.net; Sat, 23 Oct 2021 14:06:18 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54474) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1meLP8-0003Aa-Ua for guix-patches@gnu.org; Sat, 23 Oct 2021 14:06:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:53865) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1meLP8-0002b1-LO for guix-patches@gnu.org; Sat, 23 Oct 2021 14:06:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1meLP8-0005RZ-EO for guix-patches@gnu.org; Sat, 23 Oct 2021 14:06:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#51359] [PATCH 0/1] home-state-service-type and tests suite Resent-From: Oleg Pykhalov Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 23 Oct 2021 18:06:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 51359 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 51359@debbugs.gnu.org Cc: Oleg Pykhalov X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.163501231420857 (code B ref -1); Sat, 23 Oct 2021 18:06:02 +0000 Received: (at submit) by debbugs.gnu.org; 23 Oct 2021 18:05:14 +0000 Received: from localhost ([127.0.0.1]:37178 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1meLOL-0005QJ-J1 for submit@debbugs.gnu.org; Sat, 23 Oct 2021 14:05:13 -0400 Received: from lists.gnu.org ([209.51.188.17]:60354) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1meLOJ-0005Q8-Bh for submit@debbugs.gnu.org; Sat, 23 Oct 2021 14:05:13 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54396) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1meLOH-00033f-UE for guix-patches@gnu.org; Sat, 23 Oct 2021 14:05:11 -0400 Received: from mail-lf1-x135.google.com ([2a00:1450:4864:20::135]:41839) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1meLOF-00026W-5x for guix-patches@gnu.org; Sat, 23 Oct 2021 14:05:09 -0400 Received: by mail-lf1-x135.google.com with SMTP id u21so3291430lff.8 for ; Sat, 23 Oct 2021 11:05:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=7AeuwcPXmQBf2FKTRYvP4CiVWd25EqYOQhaqCUftjgQ=; b=Kya335JOCj0xt2ko9Wb1C3Z461D03zZf18d7ttTSVzo09Ys7VzSiRbl9TYEhtHyoj2 R6GU3lm1Kk3GB/AimjqroXyhy7eaxtTAegtxPGV5XkU3r775gbYyhCd7BUKhP/KIATbJ jIhUit5H52vqdHK0eOEXCgyHPUZeQjkHlB/HpGcbwv1DaQ8C6KD9Ed9FkOoIJR23OXcx kKqCKeDYL+glTm/NavYYStnB9AWF0GZU5aY+hC+s97MCopXbtqmHP0YATgF2sYUD/SU3 WykjXBAFSKcaR65/D+wZTA2REru0zZaFw3p+rPRL/26Ng4E3TVCuT6jnoj0x1qQlg9aW g6gw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=7AeuwcPXmQBf2FKTRYvP4CiVWd25EqYOQhaqCUftjgQ=; b=hu1kn0ivbKtsdR7qKF+HAWgzqAMF+erZ4hGWaHO3Va97LsSC/d8PV8zJCr3eXlbxaU o+c+ipHjttHmTcvV5uugP3rFPHTUSx7cpQjPzjLAWzW2K59d1kSYb/PpjuV2GSMO1rHx /w1VI4glFX5vYy2WoOI0TqwxFWo+Eg9kidnpqXQeGJFgAGlHmlUeWFC6gx+3ycvPxwG/ jVz3QnAjexP0/RK/A7TOiRuAKmZuZruerHeFIUtzgIAqk2fbqcT2h44jb21NKeQPdhnA /Z5Bmgtyy8g4wC0t/g1UB7OTSY9w9l84oG/JWmRbtIDQTaLya6Ra3pq07xWTkmwyKy12 PVug== X-Gm-Message-State: AOAM533Og8XtNyBLf2llR8pBROxh439+85irJ6S/y760ZCz4lxfK9h15 TL4EgX/XzqiIxkscnlBt/jVAAVB8VNI= X-Google-Smtp-Source: ABdhPJzXjV8+PI8RZjrjRvqQ9pjGxSIoD4IXab3tIW3jvuA3dJkGPhIZ7pcWVl5rspCLnzU6in39rg== X-Received: by 2002:a05:6512:2115:: with SMTP id q21mr7015235lfr.659.1635012304366; Sat, 23 Oct 2021 11:05:04 -0700 (PDT) Received: from localhost.localdomain ([88.201.161.72]) by smtp.gmail.com with ESMTPSA id y26sm860942lja.91.2021.10.23.11.05.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 23 Oct 2021 11:05:04 -0700 (PDT) From: Oleg Pykhalov Date: Sat, 23 Oct 2021 21:04:46 +0300 Message-Id: <20211023180446.3362-1-go.wigust@gmail.com> X-Mailer: git-send-email 2.33.1 MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::135; envelope-from=go.wigust@gmail.com; helo=mail-lf1-x135.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches Hi Guix, This patch adds support for home-state-service-type which copied from the rde project [1]. The introduction to home state services in documentation is copied from discussion [2]. Tests passed: make check-system TESTS="home-state-git" make check-system TESTS="home-state-rsync" [1] https://github.com/abcdw/rde/ [2] https://lists.sr.ht/~abcdw/rde-devel/%3C87pmzze9nn.fsf%40trop.in%3E#%3CCABrWRW1Fq-8mS=MbWJedUpayj1vFg-YE0oNF3zVTYWBMnp29Lg@mail.gmail.com%3E Oleg Pykhalov (1): home: services: Add state services. doc/guix.texi | 32 ++ gnu/home.scm | 12 + gnu/home/services/state.scm | 210 ++++++++++++ gnu/home/services/utils.scm | 81 ++++- gnu/home/services/version-control.scm | 442 ++++++++++++++++++++++++++ gnu/local.mk | 2 + gnu/tests/rsync.scm | 158 ++++++++- gnu/tests/version-control.scm | 140 +++++++- guix/scripts/home.scm | 100 +++++- 9 files changed, 1163 insertions(+), 14 deletions(-) create mode 100644 gnu/home/services/state.scm create mode 100644 gnu/home/services/version-control.scm