From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 6JHDIYbH9mE6bAEAgWs5BA (envelope-from ) for ; Sun, 30 Jan 2022 18:14:46 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id kI3mHobH9mE6ewAA9RJhRA (envelope-from ) for ; Sun, 30 Jan 2022 18:14:46 +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 05EAF2415B for ; Sun, 30 Jan 2022 18:14:46 +0100 (CET) Received: from localhost ([::1]:42136 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nEDmn-0000fQ-54 for larch@yhetil.org; Sun, 30 Jan 2022 12:14:45 -0500 Received: from eggs.gnu.org ([209.51.188.92]:52660) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nEDmC-0000fD-1c for bug-guix@gnu.org; Sun, 30 Jan 2022 12:14:09 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:44644) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nEDm6-0000g5-Fy for bug-guix@gnu.org; Sun, 30 Jan 2022 12:14:07 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nEDm6-0006ND-CP for bug-guix@gnu.org; Sun, 30 Jan 2022 12:14:02 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#52808: Guix home should not assume that all targets are dot files Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sun, 30 Jan 2022 17:14:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 52808 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Andrew Tropin Received: via spool by 52808-submit@debbugs.gnu.org id=B52808.164356282324466 (code B ref 52808); Sun, 30 Jan 2022 17:14:02 +0000 Received: (at 52808) by debbugs.gnu.org; 30 Jan 2022 17:13:43 +0000 Received: from localhost ([127.0.0.1]:37547 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nEDlm-0006MY-Uj for submit@debbugs.gnu.org; Sun, 30 Jan 2022 12:13:43 -0500 Received: from hera.aquilenet.fr ([185.233.100.1]:56602) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nEDlk-0006MJ-Ic for 52808@debbugs.gnu.org; Sun, 30 Jan 2022 12:13:41 -0500 Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id BE96B2BF; Sun, 30 Jan 2022 18:13:33 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at aquilenet.fr Received: from hera.aquilenet.fr ([127.0.0.1]) by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id cleBFGGcjYrJ; Sun, 30 Jan 2022 18:13:32 +0100 (CET) Received: from ribbon (91-160-117-201.subs.proxad.net [91.160.117.201]) by hera.aquilenet.fr (Postfix) with ESMTPSA id 4D68E123; Sun, 30 Jan 2022 18:13:32 +0100 (CET) From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <6050c325-9ae9-406a-97fe-91bdf9bcd12a@www.fastmail.com> <87bkzw2kvm.fsf@trop.in> Date: Sun, 30 Jan 2022 18:13:31 +0100 In-Reply-To: <87bkzw2kvm.fsf@trop.in> (Andrew Tropin's message of "Fri, 28 Jan 2022 13:51:57 +0300") Message-ID: <87o83t9mf8.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spamd-Bar: / X-Rspamd-Server: hera X-Rspamd-Queue-Id: BE96B2BF X-Spamd-Result: default: False [-0.10 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; MID_RHS_MATCH_FROM(0.00)[] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: 52808@debbugs.gnu.org, Nick Zalutskiy Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1643562886; 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; bh=BxZXVB74eCAB3MnMecyj4DhyVjlY6vH3GXngWy1mMrk=; b=TMCfN6vIw1i5UgTWy9QoZwuHZU5P8w8FRFFLo3gVY2OsMT1qF1F1nALcmOCz/TXdGGDLHo CKvlbqzhIfhaWJqmoUM8oUTKjiqdhdXisvP7H4OFhKefwTlZTW6FXyAUApUsXd74TGbdr8 kAlMe3voviZdl9tn/PhSFUYBpb7Cz+Kkf+YpVd4vD+m9hQx8ihgc8/i803/hfz3YKAYD3K EoE1Lvl6WU7u1N0PeYUSvGJN4ZD+sLZvCk4jXBybPXJpDW4WiA2etO8WQ5IS6T4MeatrjS 6aHrHak7Yrxkz6HAmD6QcA5TqDxKrgWumalkXycyTR9jmPrCdKVxrkahA397hw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1643562886; a=rsa-sha256; cv=none; b=UkmAv5/z8D2IFituiLAMWZwBbu4lkyg3HRXTr3OKKtj7zeYlDx2AZEUQKaWDlkFL+4wiA/ rEXp0+lkEAmCiH6asd+jT1XlTFo/JfAc4aECnBsKdArcOkLdBl0xaQ6jbHHnZ+lggyiRB/ qBMQQOGQUXAkp4LmyqgziVk2E1+G4XbvoTmxuPZ7J5S2K0iHmc0oUFScUD5sRzKkrKGJ5j YhvWEbU/s4viXZ04447pWLh2yKGm26ouGiTs+BVRD9W2ih9IEdPPE23U+HF0oNQ3PqAGSX Yps6n9lNVnGNAujnHqOKFyfLbBXLIkv+xeVCSS0SHKv1d6G81ep2xE37Weg3uw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -3.63 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 05EAF2415B X-Spam-Score: -3.63 X-Migadu-Scanner: scn1.migadu.com X-TUID: h9WQ64GROJZ+ Hi Andrew, Andrew Tropin skribis: > On 2021-12-26 12:17, Nick Zalutskiy wrote: > >> The following configuration results in a `~/.run` symlink being >> created. My expectation is that a `~/run` symlink is created >> instead. (ie. not a dotfile) > > Some how I missed it and not documented home-files-service-type in the > manual, I'll add it soon. Thank you for mentioning it. It should break > this expectation :) > >>> (home-environment >>> (services >>> (list (service >>> home-bash-service-type >>> (home-bash-configuration >>> (guix-defaults? #t))) >>> (simple-service 'my-files >>> home-files-service-type >>> `(("run" ,(local-file "run"))))))) >> >> This applies to all other targets. My expectation is that the >> configuration should expect the exact target and not make an >> assumption that all targets are hidden files, since that allows for >> more utility: I share Nick=E2=80=99s surprise. :-) [...] > It's intentional and is a part of a design decision: > > For example for ("config/guix/channels.scm" ,(local-file "./chans.scm")) > chans.scm goes not to ~/.config/guix/channels.scm, but to > $XDG_CONFIG_DIR/guix/channels.scm, which can be a different location > from ~/.config, absent dot should partially break this expectation. > > It's a bad practice to use something without "config/..." prefix and > generally it should be avoided, it still possible to use something > different in rare use-cases, for example for zsh: ("zshenv" > ,zshenv-file-like-here), because it's hard to implement the lookup for > initial configuration file other way for shells. Oh, I see. > You can elaborate more on what you try to achieve and I can try to give > you a recommendation how to implement it. I=E2=80=99d expect =E2=80=98home-files-service-type=E2=80=99 to do just tha= t: add files to the home directory, without trying to be smart. Would it make sense to distinguish between =E2=80=98home-files=E2=80=99 and= (say) =E2=80=98home-xdg-configuration-files=E2=80=99? The latter would copy files to $XDG_CONFIG_DIR at activation time, whereas the former would just copy them to $HOME. I=E2=80=99d also suggest removing special handling of HOME/files in symlink-manager.scm. Relations between the various components of Guix Home should preferably be made explicit via service extensions, and not implicit through conventions like this =E2=80=98files=E2=80=99 sub-director= y. Thoughts? Ludo=E2=80=99.