From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.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 wNcmGdebrmWF/AAAqHPOHw:P1 (envelope-from ) for ; Mon, 22 Jan 2024 17:46: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 mp0.migadu.com with LMTPS id wNcmGdebrmWF/AAAqHPOHw (envelope-from ) for ; Mon, 22 Jan 2024 17:46:15 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=autistici.org header.s=stigmate header.b=B329+JT+; 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=pass (policy=none) header.from=gnu.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1705941975; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc: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=/bHcixHWgg8msbPj6EbKYOZpejlnVUkzJreNQaSNEZ4=; b=YwO0FqFTlfFBlhy/oinmLjSg7yJxlSeoWm/O9EVsRjD7IpM0YqH4n9GcLxYUr5tHdxrxVN thJcoE+/bh1lX8X1bmlZQrgDRrUAMIfk0/0CoBMx87fqYOb6TUKtJrTZYgN5ELoaCJiaP5 Fx/Zq4Tvu/zbNaoHXEd7/CyFpso1Ndd9/8s8wpchUfFjyA4idBeN1JQl/3aTeo6S2nSNUO 1Jme0D7XDmWTOScIeOmy3jcJaiTXX8uUuLvG0BpYp23M9yF6Cbx++SyKER84uFRhm7niRm /RSwaimwVKxMtPG/TY8RZ12+zXhsB/PlJfW4oVCaSCs6yPCIVLlmJFBA3Z4uxA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=autistici.org header.s=stigmate header.b=B329+JT+; 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=pass (policy=none) header.from=gnu.org ARC-Seal: i=1; s=key1; d=yhetil.org; t=1705941975; a=rsa-sha256; cv=none; b=Lf9Qv61tUMPcRs8gVbQ4RfpsvhDLzuDGHVImxHLh03l+pqhfn+sDxmfqAG2aYR2LP4rss9 SyOhgPfsE0jn1CC3byL3lalLrDrWQqWah/4uIZWjKlhoBLJ8AyqzRPzxLqHWf7EnvSkKNE plC5o60cI5G2mHDAZgwvdRgHPNWFNKh7YhBJp5+wf1PlvdWL3s49OMuUAXZaZFrFwWr+hO u93K2nmXsOGxOG1IF7dQM/0eC2FqWXMaKLe+c+5DY4rPgIMDnC6023wrwgh9B7MgTEJXt5 y2bxUSaIwN2NCafqIRlFfqRZ2yV0I9GUDSKHFdLfT8BmUd8ZFdU9fXXAxl6NGA== 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 A3D263D2FE for ; Mon, 22 Jan 2024 17:46:14 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rRxR2-0002GX-Qa; Mon, 22 Jan 2024 11:46:08 -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 1rRxQs-0002Cl-UC for guix-patches@gnu.org; Mon, 22 Jan 2024 11:45: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 1rRxQs-0003G0-LI for guix-patches@gnu.org; Mon, 22 Jan 2024 11:45:58 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rRxQw-0000tJ-OR for guix-patches@gnu.org; Mon, 22 Jan 2024 11:46:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#60521] [60521] Add home-dotfiles-service-type - Rebased on master Resent-From: paul Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 22 Jan 2024 16:46: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: Feng Shu Cc: 60521@debbugs.gnu.org Received: via spool by 60521-submit@debbugs.gnu.org id=B60521.17059419613401 (code B ref 60521); Mon, 22 Jan 2024 16:46:02 +0000 Received: (at 60521) by debbugs.gnu.org; 22 Jan 2024 16:46:01 +0000 Received: from localhost ([127.0.0.1]:41650 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rRxQu-0000sn-M2 for submit@debbugs.gnu.org; Mon, 22 Jan 2024 11:46:01 -0500 Received: from confino.investici.org ([93.190.126.19]:40907) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rRxQs-0000sU-0K for 60521@debbugs.gnu.org; Mon, 22 Jan 2024 11:46:00 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=autistici.org; s=stigmate; t=1705941951; bh=WyGQe4ktI0bjd4z9SMOB4JNbZmiqWYe5oa/MjyGHfsE=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=B329+JT+8bUbwZ57ki1TKCeM2w1CJsX8Jw4OFUv96wQCoAtwer7DNLTA6LzQX7+ni 2JZMfd1rTrt1DqH5492J672Yqy5QLybh20Yzt7E/7noOAGuNSytIyd6NyhDgG5Pf5l B2fEkyCW6teAE6SrU0fzAsGlDxNf3OV+cEPsHwGE= Received: from mx1.investici.org (unknown [127.0.0.1]) by confino.investici.org (Postfix) with ESMTP id 4TJbgz70hyz111m; Mon, 22 Jan 2024 16:45:51 +0000 (UTC) Received: from [93.190.126.19] (mx1.investici.org [93.190.126.19]) (Authenticated sender: goodoldpaul@autistici.org) by localhost (Postfix) with ESMTPSA id 4TJbgz6CdZz10w9; Mon, 22 Jan 2024 16:45:51 +0000 (UTC) Content-Type: multipart/mixed; boundary="------------wPi2I4chHi7ITwSf4fNnjpYj" Message-ID: <151fb78b-ed1a-e2c0-036d-c927d6c7429d@autistici.org> Date: Mon, 22 Jan 2024 17:45:51 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.15.0 References: <0a34b882-cb82-cbb2-50fe-f85725acf024@autistici.org> <2882eccf-000b-3db4-b2da-2dcb5c68e8ff@autistici.org> <87zfwxzgrm.fsf@163.com> Content-Language: en-US In-Reply-To: <87zfwxzgrm.fsf@163.com> 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: , Reply-to: paul X-ACL-Warn: , paul via Guix-patches From: paul via Guix-patches via 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.66 X-Migadu-Queue-Id: A3D263D2FE X-Spam-Score: -4.66 X-Migadu-Scanner: mx11.migadu.com X-TUID: CqEFCoQaDBcs This is a multi-part message in MIME format. --------------wPi2I4chHi7ITwSf4fNnjpYj Content-Type: multipart/alternative; boundary="------------w1pWSecrc2lT96H9jfFVclwN" --------------w1pWSecrc2lT96H9jfFVclwN Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Hello, the following works for me with the attached configuration. $ tree -a . . └── guix-home-project     ├── .dotfiles     │   └── rime     │       ├── .config     │       │   └── ibus     │       └── .emacs.d     └── test-config.scm 7 directories, 1 file $ echo hello > guix-home-project/.dotfiles/rime/.config/ibus/rime $ cd guix-home-project/.dotfiles/rime/.emacs.d/ && ln -s ../.config/ibus/rime ./ $ ls -al 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=`pwd`/..=$HOME test-config.scm 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/hpnywydkrfygcl2qplxwgypqqwny16x5-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/l27r8vj94ggr3na9pb1snizsmvh0zrxl-shell-profile... done Symlinking /home/paul/.emacs.d/rime -> /gnu/store/05v76y32j495v8dw6aaknp91k0371q34-home-dotfiles-.emacs.d-rime... done Symlinking /home/paul/.config/fontconfig/fonts.conf -> /gnu/store/sfj8h6zbacaz3y3gqzxqsbz3621nq4jv-fonts.conf... done Symlinking /home/paul/.config/ibus/rime -> /gnu/store/lfw0i01pmwzaia6f7lb9c4p84y357pbd-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/ 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/05v76y32j495v8dw6aaknp91k0371q34-home-dotfiles-.emacs.d-rime -bash-5.1$ Hope this helps, giacomo --------------w1pWSecrc2lT96H9jfFVclwN Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit

Hello,

the following works for me with the attached configuration.

$ tree -a .
.
└── guix-home-project
    ├── .dotfiles
    │   └── rime
    │       ├── .config
    │       │   └── ibus
    │       └── .emacs.d
    └── test-config.scm
7 directories, 1 file
$ echo hello > guix-home-project/.dotfiles/rime/.config/ibus/rime
$ cd guix-home-project/.dotfiles/rime/.emacs.d/ && ln -s ../.config/ibus/rime ./
$ ls -al 
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=`pwd`/..=$HOME test-config.scm 
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/hpnywydkrfygcl2qplxwgypqqwny16x5-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/l27r8vj94ggr3na9pb1snizsmvh0zrxl-shell-profile... done
Symlinking /home/paul/.emacs.d/rime -> /gnu/store/05v76y32j495v8dw6aaknp91k0371q34-home-dotfiles-.emacs.d-rime... done
Symlinking /home/paul/.config/fontconfig/fonts.conf -> /gnu/store/sfj8h6zbacaz3y3gqzxqsbz3621nq4jv-fonts.conf... done
Symlinking /home/paul/.config/ibus/rime -> /gnu/store/lfw0i01pmwzaia6f7lb9c4p84y357pbd-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/    
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/05v76y32j495v8dw6aaknp91k0371q34-home-dotfiles-.emacs.d-rime
-bash-5.1$

Hope this helps,

giacomo

--------------w1pWSecrc2lT96H9jfFVclwN-- --------------wPi2I4chHi7ITwSf4fNnjpYj Content-Type: text/x-scheme; charset=UTF-8; name="test-config.scm" Content-Disposition: attachment; filename="test-config.scm" Content-Transfer-Encoding: base64 KHVzZS1tb2R1bGVzIChnbnUgaG9tZSkKICAgICAgICAgICAgIChnbnUgaG9tZSBzZXJ2aWNl cykKICAgICAgICAgICAgIChzbWFsbC1ndWl4IGhvbWUgc2VydmljZXMgZG90ZmlsZXMtdjIp CiAgICAgICAgICAgICAoZ3VpeCB1dGlscykpCgooaG9tZS1lbnZpcm9ubWVudAogKHNlcnZp Y2VzCiAgKGxpc3QgKHNlcnZpY2UgaG9tZS1kb3RmaWxlcy1zZXJ2aWNlLXR5cGUKICAgICAg ICAgICAgICAgICAoaG9tZS1kb3RmaWxlcy1jb25maWd1cmF0aW9uCiAgICAgICAgICAgICAg ICAgIChkaXJlY3RvcmllcwogICAgICAgICAgICAgICAgICAgKGxpc3QgKHN0cmluZy1hcHBl bmQgKGN1cnJlbnQtc291cmNlLWRpcmVjdG9yeSkgIi8uZG90ZmlsZXMiKSkpKSkpKSkK --------------wPi2I4chHi7ITwSf4fNnjpYj--