From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id aIY2A11gzmM6AgEAbAwnHQ (envelope-from ) for ; Mon, 23 Jan 2023 11:24:29 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id sPZRAl1gzmPbzwAAG6o9tA (envelope-from ) for ; Mon, 23 Jan 2023 11:24:29 +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 79C42E2AB for ; Mon, 23 Jan 2023 11:24:28 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pJtzg-0007NX-IY; Mon, 23 Jan 2023 05:24:04 -0500 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 1pJtzf-0007NI-1B for guix-patches@gnu.org; Mon, 23 Jan 2023 05:24:03 -0500 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 1pJtze-0000e1-80 for guix-patches@gnu.org; Mon, 23 Jan 2023 05:24:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pJtze-0007dT-0T for guix-patches@gnu.org; Mon, 23 Jan 2023 05:24:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#60521] [PATCH] home: Add home-stow-migration-service. Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 23 Jan 2023 10:24:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 60521 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Andrew Tropin Cc: Giacomo Leidi , 60521@debbugs.gnu.org Received: via spool by 60521-submit@debbugs.gnu.org id=B60521.167446942229327 (code B ref 60521); Mon, 23 Jan 2023 10:24:01 +0000 Received: (at 60521) by debbugs.gnu.org; 23 Jan 2023 10:23:42 +0000 Received: from localhost ([127.0.0.1]:53440 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pJtzK-0007cw-CR for submit@debbugs.gnu.org; Mon, 23 Jan 2023 05:23:42 -0500 Received: from eggs.gnu.org ([209.51.188.92]:46780) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pJtzH-0007ci-TT for 60521@debbugs.gnu.org; Mon, 23 Jan 2023 05:23:40 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pJtz8-0000bG-MC; Mon, 23 Jan 2023 05:23:31 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=ypPABqRnNsE6LOFoCn/ZyDPxViZpvho2tiPGmCmMZY8=; b=rbOrJePtse9kE2Ps0JIp ggYkeTMyXIqFxI6swKJnMb99h9zWJJiDlcEJRD7SM5mKmuGZtZYfJmxwWZFEkQHV0jEi2b1J0utnE OeW93O5EK+E7Yg651QlIYA5AWF+OBK/kHYpJs0FawoX5Mo5XAiV1MkJ/Baz1f9spZkbzEjeuVwje5 kcePeIbCrzaEk5MRIvviRx64JRZYZ1NZU9S9OeIJDW3S/1mNnaesTr4J+HpsDEsYXQD2a711WDBTK julWG5X+PAlkheVe4NLnTPjmBnxTS5ikuyihdecaWmlIyOoHN+pognyIpkhs6K2p6u3z/ksgyH6uv rBfEUxzLNTdh2A==; Received: from [2001:660:6102:320:e120:2c8f:8909:cdfe] (helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pJtz7-0002bW-1L; Mon, 23 Jan 2023 05:23:29 -0500 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <0a8d7bce31856292baa06a08260494c0@autistici.org> <20230103165534.25644-1-goodoldpaul@autistici.org> <87o7qxi9ym.fsf_-_@gnu.org> <87tu0p89wf.fsf@trop.in> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: Quartidi 4 =?UTF-8?Q?Pluvi=C3=B4se?= an 231 de la =?UTF-8?Q?R=C3=A9volution,?= jour du Perce-neige X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Mon, 23 Jan 2023 11:23:27 +0100 In-Reply-To: <87tu0p89wf.fsf@trop.in> (Andrew Tropin's message of "Tue, 17 Jan 2023 19:21:04 +0400") Message-ID: <87edrl4kio.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1674469468; a=rsa-sha256; cv=none; b=Mf9zHL6Q2d3bQ14/6QNunjJb/sYg+zV2qy+/ZzrpI77wnW9TGIMoUaDxnpe1ku6Lx6yWic +RuGiiBiQbHR3AobzT5fse9qhdXWu7Q0q5y+R3FW9nqkxbQmD5nJ85mhlUdNJtxNONquCM Etl1jEb66Q1sQ0bAvgFwc2pQlpNHXlkO2V50pZhUcZgf8znsoT3JAjxDdHzQRBKtdwsvFR InqwSaQtggot8uuzOKYHCXxNCSvtJYRmDIUzUB1i/FRPqmqpOWVx1DaHv1qQgHiIpbfEyl pB/bfXlY2Y+ZKYfh43qKWtJCwA1JY7RJCkv65IQWyTIOsm2TFdFK3w+PT2/wHg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=rbOrJePt; dmarc=pass (policy=none) header.from=gnu.org; 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=1674469468; 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: content-transfer-encoding:content-transfer-encoding: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=ypPABqRnNsE6LOFoCn/ZyDPxViZpvho2tiPGmCmMZY8=; b=dxT4pAUJXadCpkyHMOQWCXU+YXqXpjb7bMUq7lFU0t3qxyIu86vIXllByaafhRRtsx53nc XCKpz5a+EGAjvD5rK8mlF/+ywq5lBgiWnm+wjAlhoMr+8LAYQmmFmlKweLamxlF7En26Kb Zrsnkb/Wxqt3SDkrSTh0GpWPbQrny+jzfzky6GeU62WntKay5JN+HsI9uCXpIoX/nmeO5i 0wlcV762yhSFbEkm/FsCyXEcdawiGl4FOu9e0wPik/eFnZyv95sPlpHrlAWGJ57Cq1wO6I maHflSHpZHH8IGCzrHiExNa/k8GIIHc4sD/Mhy7rM7WdKskNrZQgrIMxvhIQ6g== X-Spam-Score: -5.68 X-Migadu-Queue-Id: 79C42E2AB Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=rbOrJePt; dmarc=pass (policy=none) header.from=gnu.org; 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" X-Migadu-Scanner: scn0.migadu.com X-Migadu-Spam-Score: -5.68 X-TUID: ASBrXiV+XjJ+ Hi, Andrew Tropin skribis: >>> +A suitable configuration would then be: >>> + >>> +@lisp >>> + (home-stow-migration-service >>> + (string-append (getenv "HOME") >>> + "/.dotfiles")) >>> +@end lisp > > The service looks neat! Thank you, Giacomo. > > Ludo, wouldn't it be better and safer to use (local-file "./dotfiles" > #:recursive? #t) here? I find it kinda dangerous for reproducibility to > reference local files and make logic inside the service to depend on it. Currently I don=E2=80=99t think that=E2=80=99s possible because the service= imports those files at configuration time, but the end result is the same: those dot files are copied to the store and that=E2=80=99s what=E2=80=99s referen= ced. I think it=E2=80=99s okay like this, but I don=E2=80=99t have a strong opin= ion. That said, from a usability viewpoint, it does mean that users would typically have to version-controlled directories (one with the Home config file, and one with the Stow-style dot file tree), which is not great. Perhaps the manual could say something about it. Thanks, Ludo=E2=80=99.