From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id wMoSNYp2g2K7KgEAbAwnHQ (envelope-from ) for ; Tue, 17 May 2022 12:18:50 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id 0O88NYp2g2K/gwAA9RJhRA (envelope-from ) for ; Tue, 17 May 2022 12:18:50 +0200 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 3C674465E3 for ; Tue, 17 May 2022 12:18:50 +0200 (CEST) Received: from localhost ([::1]:52806 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nquHx-0000OZ-2M for larch@yhetil.org; Tue, 17 May 2022 06:18:49 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50010) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nquEr-0005QC-IT for help-guix@gnu.org; Tue, 17 May 2022 06:15:43 -0400 Received: from out2.mail.ruhr-uni-bochum.de ([2a05:3e00:c:1001::8693:2ae5]:24669) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nquEl-00046n-Lc for help-guix@gnu.org; Tue, 17 May 2022 06:15:35 -0400 Received: from mx2.mail.ruhr-uni-bochum.de (localhost [127.0.0.1]) by out2.mail.ruhr-uni-bochum.de (Postfix mo-ext) with ESMTP id 4L2X7L0xKNz8Wnc; Tue, 17 May 2022 12:15:26 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ruhr-uni-bochum.de; s=mail-2017; t=1652782526; bh=ogUkI9MBfUvVnvIgZ9deQ+BGuRtbNV2XQo8yHHR4TLE=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=VQy8vtaptjlL2ucKOeUXOcLm9PCD8f7/9ZhMD5w8dvHv23kCUuOcdbS/3ev0Swenq 6l+t6o2sJihWB+Tc23+yRa7CypFiRj2VOFoZQ2w85J5J4KCRWRXOU7BAK3RD5oBOop yZ5okh+Orv2vQt8LhTW4KVB3GFhU3aq9o8kCcWmg= Received: from out2.mail.ruhr-uni-bochum.de (localhost [127.0.0.1]) by mx2.mail.ruhr-uni-bochum.de (Postfix idis) with ESMTP id 4L2X7L07mXz8WnP; Tue, 17 May 2022 12:15:26 +0200 (CEST) X-RUB-Notes: Internal origin=134.147.42.236 X-Envelope-Sender: Received: from mail2.mail.ruhr-uni-bochum.de (mail2.mail.ruhr-uni-bochum.de [134.147.42.236]) by out2.mail.ruhr-uni-bochum.de (Postfix mi-int) with ESMTP id 4L2X7J6r6sz8Wmr; Tue, 17 May 2022 12:15:24 +0200 (CEST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.104.1 at mx2.mail.ruhr-uni-bochum.de Received: from xii-04 (pm26.mg07.ruhr-uni-bochum.de [10.150.49.41]) by mail2.mail.ruhr-uni-bochum.de (Postfix) with ESMTPSA id 4L2X7J3vWRzDgyl; Tue, 17 May 2022 12:15:24 +0200 (CEST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.104.2 at mail2.mail.ruhr-uni-bochum.de From: =?utf-8?Q?Daniel_Mei=C3=9Fner?= To: =?utf-8?Q?S=C3=A9bastien?= Rey-Coyrehourcq Cc: Julien Lepiller , help-guix@gnu.org Subject: Re: Guix home, guix system, channels, some noob questions References: <05b8334e-8ecb-1373-97b3-10b8617ed3c8@univ-rouen.fr> <490A4062-75F7-4919-803D-47E98DF9421C@lepiller.eu> <85258fe5-a220-41c6-d153-86de8c6bd57e@univ-rouen.fr> <34587fa7-652f-19a0-3006-aa3e707b13fb@univ-rouen.fr> <357B4763-2DA0-4255-9E58-B882E8ED1A9A@lepiller.eu> <36a809b0-6d5a-2f29-4c5f-07a418e05cbd@univ-rouen.fr> <441E1AD5-DFC9-4BBD-A45C-8328B51BE8D6@lepiller.eu> <635b0475-0134-acb4-8245-afcb571327a0@univ-rouen.fr> <87ee0s62m7.fsf@ruhr-uni-bochum.de> <481369ed-182c-000c-5927-f8879503cc39@univ-rouen.fr> <877d6k5yf7.fsf@ruhr-uni-bochum.de> Date: Tue, 17 May 2022 12:15:24 +0200 In-Reply-To: (=?utf-8?Q?=22S=C3=A9bastien?= Rey-Coyrehourcq"'s message of "Tue, 17 May 2022 11:20:11 +0200") Message-ID: <87pmkc4g8z.fsf@ruhr-uni-bochum.de> 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 Received-SPF: pass client-ip=2a05:3e00:c:1001::8693:2ae5; envelope-from=daniel.meissner-i4k@ruhr-uni-bochum.de; helo=out2.mail.ruhr-uni-bochum.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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_MED=-2.3, 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: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" 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=1652782730; 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: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=ZhgbeAVOPpkw/jtoCMuzwQvoACY29mwpKL2dtgMiDk8=; b=Hkqx7YF7ZGosK0bOcYMSldngIG6TX/YcFPR2JGETc6Z0xMYK2tn2+Ho0ecJBvlfLPRaq62 PS54r/9fHqEV+lZmmwDws6evpBcV9h0KgEsYSHds3TCPlv7lric2DzjelxF+mYhUewq7VO 1xq/DVjUHb6dKy0GNeu/JUdDc48wUQMjpQ7QUw3qk3E75jsG2Jls6A8k6yuk7ak8SjuD3W z5gsKdMoq3K1rDoX6EbtqsfnQmpVkBGEHjQ6qKlpAmQg9JHd8ojnAKluafhrnbdn3RxSya 59jUc8Ryy+bB1QR3YPcGqIzBEAb0eUJejfAZVAGuC/CrCerin0GLGXl0V9gnzA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1652782730; a=rsa-sha256; cv=none; b=WmuhWbG5MHw3D81Uu8bM5V50VtiHOgkW7H1+OUqWuVcw2MREcYWyrlEDnoa2nBYjPu49HU Pt7s85hnxXig9cTu693J5CxmnIkFmTFrQSWYpwCyN07fpiOCFxCYrR85tJeFm5izgDeM8y QKqKCoAtnEMbnZGkgMQJwCGG3HkM35GYGKXy0WJxT8fwb6HxM+tDZzkGzSSDSbfAkFG3dv 9YYxredE8wXZmHeRPbYUvsTtK9QApVCNIPEdewrPF5BZZflhnWgviq17Op5hDiA1mfenf9 xBfXaVZLPMMTdYWqTnGlWiUDcL1mv37p+aarhkCHhESa7k5ZA0gmUfgpzYVMSQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=ruhr-uni-bochum.de header.s=mail-2017 header.b=VQy8vtap; dmarc=pass (policy=quarantine) header.from=ruhr-uni-bochum.de; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -10.34 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=ruhr-uni-bochum.de header.s=mail-2017 header.b=VQy8vtap; dmarc=pass (policy=quarantine) header.from=ruhr-uni-bochum.de; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 3C674465E3 X-Spam-Score: -10.34 X-Migadu-Scanner: scn0.migadu.com X-TUID: 2y2BtH6xZU62 S=C3=A9bastien Rey-Coyrehourcq writes: > If you have some example of guix home profile that use dotfile manager > i'm interested :) > I'm planned to use chezmoi with pass (https://www.chezmoi.io/) in go > that use git to version file. IIUC you can use Guix home directly and dispense with chezmoi. However, I did not know chezmoi before so there might be a use-case that is not covered by Guix home, in principle though, Guix home is itself a dotfile manager. I use it for example to manage my Git config, Emacs config and others. The manual has a chapter about it: https://guix.gnu.org/de/manual/devel/en/html_node/Home-Configuration.html#H= ome-Configuration A simple example would be the following: --8<---------------cut here---------------start------------->8--- (use-modules (gnu home) (gnu home services) (gnu home services shells) (gnu services) (gnu packages admin) (guix gexp)) (home-environment (packages (list htop)) (services (list (service home-bash-service-type (home-bash-configuration (environment-variables '(("HISTFILE" . "$XDG_STATE_HOME/bash_history"))))) (simple-service 'git-config home-files-service-type (list `(".gitconfig" ,(plain-file "gitconfig" "[user] email =3D daniel.meissner-i4k@ruhr-uni-bochum.de name =3D Daniel Mei=C3=9Fner "))))))) --8<---------------cut here---------------end--------------->8--- This would create a home-environment with the package =E2=80=98htop=E2=80= =99, a bash configuration that sets the HISTFILE env var as well as the .gitconfig file with the above contents. You can test this environment using: guix home container test-home.scm This spawns a shell where your home environment is set up as specified but using a container. So your actual home directory is not modified. You don=E2=80=99t have to embed all your config files inside the Scheme file directly. You can also load from other files, for example, you could replace the ,(plain-file ...) call with a ,(local-file "gitconfig.txt") which would use the contents of the file gitconfig.txt which lives next to your Scheme file for the generation of the .gitconfig file. Best -- Daniel