From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id wEdbKSnL82FgQgEAgWs5BA (envelope-from ) for ; Fri, 28 Jan 2022 11:53:29 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id QILBJinL82FCqgAA9RJhRA (envelope-from ) for ; Fri, 28 Jan 2022 11:53: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 335BF2C148 for ; Fri, 28 Jan 2022 11:53:29 +0100 (CET) Received: from localhost ([::1]:54668 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nDOsh-0003dP-Uf for larch@yhetil.org; Fri, 28 Jan 2022 05:53:27 -0500 Received: from eggs.gnu.org ([209.51.188.92]:50006) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nDOsI-0003a1-71 for bug-guix@gnu.org; Fri, 28 Jan 2022 05:53:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:36435) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nDOsH-0003LY-TR for bug-guix@gnu.org; Fri, 28 Jan 2022 05:53:01 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nDOsH-0004O1-U7 for bug-guix@gnu.org; Fri, 28 Jan 2022 05:53:01 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#52808: Guix home should not assume that all targets are dot files Resent-From: Andrew Tropin Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Fri, 28 Jan 2022 10:53:01 +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: Nick Zalutskiy , 52808@debbugs.gnu.org Received: via spool by 52808-submit@debbugs.gnu.org id=B52808.164336713016786 (code B ref 52808); Fri, 28 Jan 2022 10:53:01 +0000 Received: (at 52808) by debbugs.gnu.org; 28 Jan 2022 10:52:10 +0000 Received: from localhost ([127.0.0.1]:57571 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nDOrS-0004Mg-8T for submit@debbugs.gnu.org; Fri, 28 Jan 2022 05:52:10 -0500 Received: from mail-lj1-f172.google.com ([209.85.208.172]:44768) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nDOrP-0004Lx-7w for 52808@debbugs.gnu.org; Fri, 28 Jan 2022 05:52:08 -0500 Received: by mail-lj1-f172.google.com with SMTP id c15so8391501ljf.11 for <52808@debbugs.gnu.org>; Fri, 28 Jan 2022 02:52:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=trop-in.20210112.gappssmtp.com; s=20210112; h=from:to:subject:in-reply-to:references:date:message-id:mime-version; bh=t06EdTu/lReJjfuI2ouY01/qbsO0kloAjwmXy0sdgrM=; b=dWWOlRC0kt77MoNzPNbpga9lJwgZsKx9eKTwXRJiJksJqSMZI1Z8piqNr1K0xG0gge AAvZkP0wNvv5vnDqA8VeEB+EkplaifWqBJB+07CnlqDH33Ng6atvY53UHILFWNYRRj1t Z4e22ocHDxXJyBIFm2EfAHrIZAboBhgfbI/v307ckhHP0EXp919lbC3CktuqGmBPdurt Iw8ezeQlf+Er2kIEKbdQqxbsUZylG3PmIK0od10Tsxyg2dctYle1bgGlu/CITMTGS0fZ iAXtrcswQF8VzErjjGPMCApn98PVscdpboX/U1MS04xU0DD1+qYDWmjncNRLdCbvWsEP nBWw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:in-reply-to:references:date :message-id:mime-version; bh=t06EdTu/lReJjfuI2ouY01/qbsO0kloAjwmXy0sdgrM=; b=ErT22MZ2A48TvKRyUlLQJi/uE5MxLX1QfljUxm8ZvxNzjnjr3e9jaeXSozSn2ef22X KMY/7yzmE9DRMQQdOlmn/eurm9/4kO2EGA1bditDdvGyX6ZgIYNLISS0Z2kcvn6Y9p3Q tvOEI6KhEmm3RGZVlec7tKyNUWXokzBHPxqIcfPqUCBI5jPglsjGteSMDfNJF6bedpgR j0ViFnevBVP0urX5g+2D+2pe5msX33hH/Tvl9Z7UsrwRXlRlgPtztsYu9r3Ara/+qbZY UYNunX2RN3T8UyI7xnvy1xh3r4vHHc9zKxI648EBY1373uMejluiEk2IHu4cMFsWyjHC dgTQ== X-Gm-Message-State: AOAM533H/cKymfZws3+mtEqN4upvOEOpB4Dhux/jiGtYcKB/1NmVyowJ vnsA/spsNUWXtRtdr6qSDc91HnfbWnZzJw== X-Google-Smtp-Source: ABdhPJzATC2WZMsY/ddmnj64JhPTT6F6F/CvByB25OumTWNuYfgeXT9lLzAJSsETrz7hvHIWd8/Ukw== X-Received: by 2002:a2e:b05a:: with SMTP id d26mr5536084ljl.153.1643367120965; Fri, 28 Jan 2022 02:52:00 -0800 (PST) Received: from localhost (109-252-135-33.dynamic.spd-mgts.ru. [109.252.135.33]) by smtp.gmail.com with ESMTPSA id cf4sm1428845lfb.280.2022.01.28.02.51.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Jan 2022 02:52:00 -0800 (PST) From: Andrew Tropin In-Reply-To: <6050c325-9ae9-406a-97fe-91bdf9bcd12a@www.fastmail.com> References: <6050c325-9ae9-406a-97fe-91bdf9bcd12a@www.fastmail.com> Date: Fri, 28 Jan 2022 13:51:57 +0300 Message-ID: <87bkzw2kvm.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: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 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=1643367209; 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=t06EdTu/lReJjfuI2ouY01/qbsO0kloAjwmXy0sdgrM=; b=Q5iYVMgzc9jlphWnrldV6e0Y32m/pwWv19JS2C26F98SWy13Tm78yumxrQjWaPjVpfYTaP v+0bQbjYU3DoQgudKHMA6m2j/nbpHOe01eJQT0hV7y6qAckaJYC4OypF8c3s0l0h5QVgp7 ELTPKc5mtSrLAzdqrjU8ZAU7KNE55Vtj+WN48H5M06oQ/Mpk5SkD2A1+O8X3as2JhyStDW BjkmUWWVTQlz1x6I3ZwIGNWNQg0NAjYgI+OsxV0i4DJIMtvqbmuqyZrDaJ+WawJ8PwK7Qe DKFghkJcKoubTWROpS+ekiH+A5DWQBcFlwAREdRWG9EgEzxdOOCM6ATrEvWRow== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1643367209; a=rsa-sha256; cv=none; b=jvWBW0iPOEFe+r2sS1H/SP8LBlndc4JDXWjlHWeqNqMHXB4fpx2OsPvmMCejx2thrQQ8ue Q1sITOqqUT/f9ncTCzSCwZ2Ju5ukqmLQEJ2xzcpGAunuIK/2ZUVQrSAgwqrB/ZYBBmzS/L VUHpjAysDakLhuWjVGthdJLVJSXxbCYHEcN6eG+RhM8iFG4dNZPLDLXbpdQiZpM3jwDqAB 2poVYkvYD+C8ZHpHGPuSwdgChC+aSOocTCIsECYPvRtoG2ZAnB5NQ35Vwy9VTDpaRdw0lt ZXRGq5GMn5b/Xns8kCbo6OrIypU1EDPQgrlfwmiNkpTPbmpnpOgthkfmYypW5g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=trop-in.20210112.gappssmtp.com header.s=20210112 header.b=dWWOlRC0; dmarc=none; 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: -4.23 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=trop-in.20210112.gappssmtp.com header.s=20210112 header.b=dWWOlRC0; dmarc=none; 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: 335BF2C148 X-Spam-Score: -4.23 X-Migadu-Scanner: scn0.migadu.com X-TUID: /Bz+G25Zn8Wy --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable 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: > >> (home-environment >> (services >> (list (service >> home-bash-service-type >> (home-bash-configuration >> (guix-defaults? #t))) >> (simple-service 'config-files >> home-files-service-type >> `(("run" ,(local-file "run")) >> ("README.txt" ,(local-file "README.txt")) >> (".config/guix/channels.scm" ,(local-file "config/guix >> (".emacs.d/init.el" ,(local-file "emacs.d/init.el")) >> (".vimrc" ,(local-file "vimrc")) >> (".gitconfig" ,(local-file "gitconfig"))))))) > > Thank you, > > -Nick 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. You can elaborate more on what you try to achieve and I can try to give you a recommendation how to implement it. =2D-=20 Best regards, Andrew Tropin --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQJDBAEBCgAtFiEEKEGaxlA4dEDH6S/6IgjSCVjB3rAFAmHzys0PHGFuZHJld0B0 cm9wLmluAAoJECII0glYwd6w/iUP/j9ysCXYCXrPV+9rweTqixC150fBRMUYpbD8 /Gz3hOCbORvQ+vOksTYWAF1k2/xU4orz/oXqOGhMNAuD9Rv+KntpZ+DsO9pRkQbt +o9qs5b3JkB0EBfUWYddguOrSVTg38VG25HyJm4LK3GW3yVlImEgiCilaN7cf9dd ViGmovywc74AKi3wsM7Zxml1nS8QMy6zdZo9Mm1MVp6RHBreCcrBEum0AFbw0zPx Il3qAynorByapfluuo2FkD2r3yMekvjUaRNY600fZoKir0WyAG28QiDqelC7TPYp VaiYguhmNlLUk3o10hiZnShJ6saqJwCaAN6KBWEDC8ekZL+3+LCuIX9mFIJNM+a3 oEz1MISSG467gMnd4ZJMhG9MeUgUnbsSBD/th96ES3VXL6V0xtQFD0wqyLcoFL4w xqP2KOSkTkyeW6cm0dyYbtk7gBBIvaVduIESv77zk4dMazF7Or1gkAq+DMGz8ys9 IMZ2DEE3Zr2DEungfXaF7Bbbf9FU8kZVt42tEBRTiJvZZREMVc3TaLMDlBoBl2jE d+zVtjeOqYOrLDIhQmRhOlWXFOEMABLyHvhTVOeJrW/BfcrosohBPA9Fcd1XC7O+ GJeUOTcjxkkwUXAeTyocLoYYL1VDCoFQyH38zBsGlgvoHJ+g+Z3+XdvvJr0UleeB kN/hN2F7 =vJjk -----END PGP SIGNATURE----- --=-=-=--