From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id IBGILdOtr2VFWAAA62LTzQ:P1 (envelope-from ) for ; Tue, 23 Jan 2024 13:15:15 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id IBGILdOtr2VFWAAA62LTzQ (envelope-from ) for ; Tue, 23 Jan 2024 13:15:15 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=163.com header.s=s110527 header.b=NRtvdN5o; 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"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=163.com (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1706012115; 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=4IzgS504xDPVCJIHH6ETPWyNlzKXPfuMBxZGsnAWz3Y=; b=QyERmnVjepQyLewJUsorluAv5xa07FO4G7nXOX40TXE9bQ0PvX8f7Iz17jRWCRDwojfHb5 XL7+n/+0Q/iKrm0VYJ2fiHld2vFW93ZKyfhJTN9v2HkvqchqVpMLkEsNK3Q054APLsYy+u qM3leS7B8Rqf0XKpidOndnVMSfs9UvIeyKZBVsCKXyLlwCR19gvaH5C5YdqhYApYF6vOFa xReDZDs9VbE58fOOlwqD+DQokITOPd1AvRfNOz6Mi2+WR9LDJc3QEA+1xmgvHXbKz1Vdq+ EUsF+M3nnLg5YHXjNrHLBnke+pWI10XR4oRP86tWhDMhnRzT2BpwZRcuY5w60g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=163.com header.s=s110527 header.b=NRtvdN5o; 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"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=163.com (policy=none) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1706012115; a=rsa-sha256; cv=none; b=iI055A4Qi1c8KksL9PD8yuSFyttyYIVs0cU89IYhjXQSVIXa2pkZ7nO/e50HvJ8MR6qEvR 0WvCJowVr053qR9Sou9BC2RTswCtHB8lT1ahR+nmOj26zE4vIGwZZuOHslcqICW/ruaOl7 xIxs8cslZhhh0XWmVJjf0ZmUVPrQUg3ayd1Ipno02K1Uxp0JYV2e7MN/L9sNLvAqeRRtxE xfglBTDPRYzV7YW5iNwMOw6jGMIvU+4By0gHCWQUmiB1XIel+o2E1Kd34zlSr5XkLUN219 GhpcNUOeihQjiyYYVxKzOw8LQtH/53dYpYCJKuogDyRN5Z5gu3bHHv0W7pN27Q== 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 37B085A874 for ; Tue, 23 Jan 2024 13:15:15 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rSFgH-0006bo-3j; Tue, 23 Jan 2024 07:15:06 -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 1rSFgB-0006aV-Tx for guix-patches@gnu.org; Tue, 23 Jan 2024 07:14:59 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rSFgA-0000IW-Pi for guix-patches@gnu.org; Tue, 23 Jan 2024 07:14:59 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rSFgE-0001cC-JX for guix-patches@gnu.org; Tue, 23 Jan 2024 07:15:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#60521] [60521] Add home-dotfiles-service-type - Rebased on master Resent-From: Feng Shu Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 23 Jan 2024 12:15:02 +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: moreinfo patch To: paul Cc: 60521@debbugs.gnu.org Received: via spool by 60521-submit@debbugs.gnu.org id=B60521.17060120946179 (code B ref 60521); Tue, 23 Jan 2024 12:15:02 +0000 Received: (at 60521) by debbugs.gnu.org; 23 Jan 2024 12:14:54 +0000 Received: from localhost ([127.0.0.1]:42380 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rSFg5-0001ba-Qt for submit@debbugs.gnu.org; Tue, 23 Jan 2024 07:14:54 -0500 Received: from m16.mail.163.com ([220.197.31.2]:59440) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rSFg1-0001bG-M5 for 60521@debbugs.gnu.org; Tue, 23 Jan 2024 07:14:52 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:Subject:Date:Message-ID:MIME-Version: Content-Type; bh=4IzgS504xDPVCJIHH6ETPWyNlzKXPfuMBxZGsnAWz3Y=; b=NRtvdN5o9cGBhT+MB2gaBHaM41TzC6YAvBRTz/1XkWBQJqmIXoTQnOUJISw5y+ HUb7wsvtGffB1uOfD/SmdBDEtM0Fli9cxGPtlhecf8ia0vT5wArqLzHNvTzx+/mA 1pGMpYCfDgD8jRe+uhMM0QoFiN/xfzKQqFpvHyHivgjS8= Received: from Guix (unknown [49.88.118.123]) by gzga-smtp-mta-g0-0 (Coremail) with SMTP id _____wCHL6Cdra9lPDIBAg--.54121S2; Tue, 23 Jan 2024 20:14:22 +0800 (CST) From: Feng Shu In-Reply-To: <151fb78b-ed1a-e2c0-036d-c927d6c7429d@autistici.org> (paul's message of "Mon, 22 Jan 2024 17:45:51 +0100") References: <0a34b882-cb82-cbb2-50fe-f85725acf024@autistici.org> <2882eccf-000b-3db4-b2da-2dcb5c68e8ff@autistici.org> <87zfwxzgrm.fsf@163.com> <151fb78b-ed1a-e2c0-036d-c927d6c7429d@autistici.org> Date: Tue, 23 Jan 2024 20:14:21 +0800 Message-ID: <87sf2o9rhe.fsf@163.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-CM-TRANSID: _____wCHL6Cdra9lPDIBAg--.54121S2 X-Coremail-Antispam: 1Uf129KBjvJXoWxAFW3Jw1kZFyfZFyDKFW8Crg_yoW5Aw1fpa 1rur13Ga4rZFnYvryvvF18GF1rJw1fXwsrXan3Jr40vryYg3s5KrsrtF1Yqa9IvasxJry8 XFW3KFW7Xa4DA3DanT9S1TB71UUUUU7qnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDUYxBIdaVFxhVjvjDU0xZFpf9x0zNXd1wUUUUU= X-Originating-IP: [49.88.118.123] X-CM-SenderInfo: 5wxpt2lkx6il2tof0z/1tbiShBu1GVOA8eGvwAAs2 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-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: 4.34 X-Migadu-Queue-Id: 37B085A874 X-Spam-Score: 4.34 X-Migadu-Scanner: mx11.migadu.com X-TUID: OL40Eid42gNB paul writes: > Hello, > > the following works for me with the attached configuration. > > $ tree -a . > . > =E2=94=94=E2=94=80=E2=94=80 guix-home-project > =E2=94=9C=E2=94=80=E2=94=80 .dotfiles > =E2=94=82 =E2=94=94=E2=94=80=E2=94=80 rime > =E2=94=82 =E2=94=9C=E2=94=80=E2=94=80 .config > =E2=94=82 =E2=94=82 =E2=94=94=E2=94=80=E2=94=80 ibus > =E2=94=82 =E2=94=94=E2=94=80=E2=94=80 .emacs.d > =E2=94=94=E2=94=80=E2=94=80 test-config.scm > > 7 directories, 1 file > $ echo hello > guix-home-project/.dotfiles/rime/.config/ibus/rime In my machine, rime is a directory and not a file. If this situation is hard to support, maybe we should add note to document. > $ cd guix-home-project/.dotfiles/rime/.emacs.d/ && ln -s ../.config/ibus/= rime ./ > $ ls -al=20 > total 4 > drwxr-xr-x 1 paul users 8 Jan 22 17:37 ./ > drwxr-xr-x 1 paul users 30 Jan 22 17:31 ../ > lrwxrwxrwx 1 paul users 20 Jan 22 17:37 rime -> ../.config/ibus/rime > $ cd ../.. && guix home container --share=3D`pwd`/..=3D$HOME test-config= .scm=20 > WARNING: (guile-user): imported module (guix build utils) overrides core = binding `delete' > WARNING: (guile-user): imported module (guix build utils) overrides core = binding `delete' > Cleaning up symlinks from previous home at /gnu/store/hpnywydkrfygcl2qplx= wgypqqwny16x5-home. > > Removing /home/paul/.profile... done > Removing /home/paul/.emacs.d/rime... done > Removed /home/paul/.emacs.d. > Removing /home/paul/.config/fontconfig/fonts.conf... done > Removed /home/paul/.config/fontconfig. > Removing /home/paul/.config/ibus/rime... done > Removed /home/paul/.config/ibus. > Removed /home/paul/.config. > Cleanup finished. > > Symlinking /home/paul/.profile -> /gnu/store/l27r8vj94ggr3na9pb1snizsmvh0= zrxl-shell-profile... done > Symlinking /home/paul/.emacs.d/rime -> /gnu/store/05v76y32j495v8dw6aaknp9= 1k0371q34-home-dotfiles-.emacs.d-rime... done > Symlinking /home/paul/.config/fontconfig/fonts.conf -> /gnu/store/sfj8h6z= bacaz3y3gqzxqsbz3621nq4jv-fonts.conf... done > Symlinking /home/paul/.config/ibus/rime -> /gnu/store/lfw0i01pmwzaia6f7lb= 9c4p84y357pbd-home-dotfiles-.config-ibus-rime... done > done > Finished updating symlinks. > > Comparing /gnu/store/hpnywydkrfygcl2qplxwgypqqwny16x5-home/profile/share/= fonts and > /gnu/store/hpnywydkrfygcl2qplxwgypqqwny16x5-home/profile/share/= fonts... done (same) > Evaluating on-change gexps. > > On-change gexps evaluation finished. > > warning: XDG_RUNTIME_DIR doesn't exists, on-first-login script > won't execute anything. You can check if xdg runtime directory exists, > XDG_RUNTIME_DIR variable is set to appropriate value and manually execute= the > -bash-5.1$ cat .emacs.d/rimex-home/on-first-login'-bash-5.1$ cat .emacs= .d/rime > hello > -bash-5.1$ ls -al .emacs.d/=20=20=20=20 > total 4 > drwxr-xr-x 1 paul users 8 Jan 22 16:42 . > drwxr-xr-x 1 paul users 234 Jan 22 16:42 .. > lrwxrwxrwx 1 paul users 71 Jan 22 16:42 rime -> /gnu/store/05v76y32j495v= 8dw6aaknp91k0371q34-home-dotfiles-.emacs.d-rime > -bash-5.1$ > > Hope this helps, > > giacomo > --=20