From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.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 2IdQIs5sPWIHKwAAgWs5BA (envelope-from ) for ; Fri, 25 Mar 2022 08:18:38 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id CGeZGs5sPWLm1wAAG6o9tA (envelope-from ) for ; Fri, 25 Mar 2022 08:18:38 +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 359FCAC6D for ; Fri, 25 Mar 2022 08:18:38 +0100 (CET) Received: from localhost ([::1]:50282 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nXeDV-0001Ua-7p for larch@yhetil.org; Fri, 25 Mar 2022 03:18:37 -0400 Received: from eggs.gnu.org ([209.51.188.92]:50622) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nXe6h-0003nV-R5 for guix-devel@gnu.org; Fri, 25 Mar 2022 03:11:37 -0400 Received: from relay2-d.mail.gandi.net ([217.70.183.194]:64617) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nXe6f-00018q-IL for guix-devel@gnu.org; Fri, 25 Mar 2022 03:11:35 -0400 Received: (Authenticated sender: andrew@trop.in) by mail.gandi.net (Postfix) with ESMTPSA id 9E4C24004B; Fri, 25 Mar 2022 07:11:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=trop.in; s=gm1; t=1648192288; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=YimvqbhulylilO61RQV4arpI5gPRRK7boeXn2rZiVJs=; b=U7j25MCcEE/0OSubyZtM8unVReXtCzDE0yWVTD94H3WOxEWFgXKh9H9sAzgCYUWNnlL22y XvzCJeFEQTdvY4Iig95DyRJ4chD/Fw9Ene5OIqQbYHBrcQRSF7ZAs0bdCLX2n3AV+2XHiL psh9amTxCHekEo+aFT6qwsvodTqKAZYuKo49je3iqHrBSE5/nBum70/qGwnEX2XYE0DVl+ LEK8ffBItzFiCXRdD/9QwOetK3nBP5N6YNj0AzZsfutiCg1f2/KeZF7kpzyBZTn30H/Xy4 vsxIIUqVHs+wwyK7L5lzspq2Dl3fveQCUmXHZCchj9mINzbiL9+BTAbablwA+g== From: Andrew Tropin To: guix-devel@gnu.org, ~abcdw/rde-devel@lists.sr.ht Subject: XDG_CONFIG_DIR and dotfiles handling in Guix Home Date: Fri, 25 Mar 2022 10:11:23 +0300 Message-ID: <87v8w2se04.fsf@trop.in> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Received-SPF: pass client-ip=217.70.183.194; envelope-from=andrew@trop.in; helo=relay2-d.mail.gandi.net X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1648192718; 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:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=YimvqbhulylilO61RQV4arpI5gPRRK7boeXn2rZiVJs=; b=X+42LcsOJqIpcsx7YspP/ns4Aa5PKxl0tNDCVPOaDsrxTVZLoFARp/n+qEUPVQX1XcMju1 Mw8dBnL5uKYngeiW89lwSnr8b3S/pKjRn40k/oyZJdCBphbqKLQ4Da8935RtRtjwXyG1oa gYZOmswq2iifKKiK5AuFM0TmwUzQNtcUVcTpRCJ4HZnLWXy3gPLU+Jko9yWOcDidEZoxEd A6ypT+pqGqmOWMOL3Ozyn/ucFDd/XmO3YcQ+xTO8BiUXmXzOwmsu8BIFUAgTAlQDrCfXtj YdG3eGV/qO5B2PGAJx8h0TrdT78ImPNbM9bzRjC1Vbhk9qtIBi9YRXpaeUqudg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1648192718; a=rsa-sha256; cv=none; b=HIfz9kRlUsviwVdn0toDwMIyH1TdNJFPnmry+RYXiygyVDYWqqfYXQEZ4a1z57mHiQf1Xo w0KdeYxe1NnnG7YSFfo76Q6eFuJ4elq50QdaBepiJFvuT85e5u542IH+dkK+GzFapvkSCS zAjUy/ON8EQ+VCRjVT9WTXpovNc6t8SbPv4msyYpzfXvfrEx92bTDnPJDz5XKRWjhGaShR AWDrm0gZBC8fu2ySxVtm8E7dubM5W99PLUunnGkBUbJEUoxyBDZviK4xubQ/tdBXZf0Uov FBcZlRl83k7g0yTJ8fS3Y3w8G/mZBtkV1U+mU9Rhc49D/58TaY9OyJ+VSu5bJw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=trop.in header.s=gm1 header.b=U7j25MCc; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -8.79 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=trop.in header.s=gm1 header.b=U7j25MCc; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 359FCAC6D X-Spam-Score: -8.79 X-Migadu-Scanner: scn0.migadu.com X-TUID: tf7qXD9Yo5Vz --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable In https://issues.guix.gnu.org/52808 we introduced a new service type called home-xdg-configuration-files-service-type, its purpose should be clear from the name: It used to define configuration files, which will go to XDG_CONFIG_HOME (default value is ~/.config) during activation of new home-environment. Here an example value, which can be used to extend this service type: =2D-8<---------------cut here---------------start------------->8--- `(("sway/config" ,(function-producing-file-like-object ...)) ("tmux/tmux.conf" ,(function-producing-file-like-object ...))) =2D-8<---------------cut here---------------end--------------->8--- Previously, the task of managing xdg configuration files was carried by home-files-service-type, but there is a special handling for config/ subdirectory, which can be unexpected. To make it clear that xdg configuration files goes to XDG_CONFIG_HOME we created a separate service type. If you have any hand-made personal home services, please migrate them to home-xdg-configuration-files-service-type. Also, don't hesitate to contribute home services to Guix! :) Another downside of home-files-service-type is that for historical reasons it requires to use a path without leading dot and adds it automatically during activation, which makes it impossible to create a directory or file without leading dot with it, for example ~/wow. This behavior is non-intuitive, so in two weeks we will make a breaking change to fix it. It won't affect home services, which use home-xdg-configuration-files-service-type, so please migrate to it from home-files-service-type before this fix or keep this date (April 8) in mind and update your services, when the fix is out. =2D-=20 Best regards, Andrew Tropin --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQJDBAEBCgAtFiEEKEGaxlA4dEDH6S/6IgjSCVjB3rAFAmI9axsPHGFuZHJld0B0 cm9wLmluAAoJECII0glYwd6wjFEP/AnH3OfF4wZKnbr+kLhRWPW8xFx1J4ifez2x GRZBm96fod62GHQsmL3PFAhGMtsZ/T1JECZnQzvxABdfcrcmgXHX+ZdpuSc6qsNC nHGn+C/BRKxAp+xZ/4XruSc8irMjDcF/2Z3X4CvF29Xenf4Oe47Aa1LWYlaym3Sf n4NyKrKSeMi4piV6BRmoA6t3My3LrVkG68Plybnat3goBIeLnQOhNLV9Ilh3NpQU ZUdzqRiN95Gxm5ZloG+KJYIPoN8ksxYpbxVUI5a4gCjgza7aaROLFUzaF1faf8Ma ///hI9f80B9+I4mVLpqraFehTuwIGOMGBLXzAooQwVqVXW3j0jFFAFa/7P23RmLP 0xCaGAbG97R1uQ0+jnfPs3XK9/0iY4jgyPWUManiZBVpfk+OE0qUik4ZVbR5SKN0 IyU/Qt4lqFxwPjJIjk1MsUETym0/JntUwybH6/KUfWBGDVfmgASxp9ikxghCIUJU RV+8IzaKrY0L087ILghb00ocHYQlV7OYyCPmX3xR8g+ncyxCyi9euCrZqLLxNEyN S3HRO3UlH11k1w/5PWVvxeZuL2cLy8Zpcd+peBrBLKh5IK6Er4sSDh1WcALx3p8G a8f28S6jeIoPE4cPvipYSq87lJXtkc2U8JXrrltNpEooaWHGenpLO3dgh8Proi7w +p42poPB =eFlE -----END PGP SIGNATURE----- --=-=-=--