From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.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 EKJ2HXA/pmKzMAAAbAwnHQ (envelope-from ) for ; Sun, 12 Jun 2022 21:33:04 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id GKFvHXA/pmKREgEAauVa8A (envelope-from ) for ; Sun, 12 Jun 2022 21:33:04 +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 0FF1115BDB for ; Sun, 12 Jun 2022 21:33:04 +0200 (CEST) Received: from localhost ([::1]:49372 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o0TKY-00029I-N2 for larch@yhetil.org; Sun, 12 Jun 2022 15:33:02 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53202) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o0TK4-000279-WB for help-guix@gnu.org; Sun, 12 Jun 2022 15:32:33 -0400 Received: from wilbur.contactoffice.com ([212.3.242.68]:36924) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o0TK2-0007B4-7Q for help-guix@gnu.org; Sun, 12 Jun 2022 15:32:32 -0400 Received: from ichabod.co-bxl (ichabod.co-bxl [10.2.0.36]) by wilbur.contactoffice.com (Postfix) with ESMTP id A50C08EE; Sun, 12 Jun 2022 21:32:23 +0200 (CEST) Date: Sun, 12 Jun 2022 21:32:20 +0200 (CEST) From: sebastien rey-coyrehourcq To: sebastien.rey-coyrehourcq@univ-rouen.fr, Dominic Martinez Cc: =?utf-8?Q?Daniel_Mei=C3=9Fner?= , help-guix@gnu.org, Julien Lepiller Message-ID: <743026325.776697.1655062339837@ichabod.co-bxl> In-Reply-To: <320be96c-d9d9-2a4f-dc83-ba072607e22d@univ-rouen.fr> 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> <87pmkc4g8z.fsf@ruhr-uni-bochum.de> <2e112f4a-980c-f3fb-167f-624914a71384@univ-rouen.fr> <87zgj56rm6.fsf@dominicm.dev> <320be96c-d9d9-2a4f-dc83-ba072607e22d@univ-rouen.fr> Subject: Re: Guix home, guix system, channels, some noob questions MIME-Version: 1.0 X-Mailer: ContactOffice Mail X-ContactOffice-Account: com:172311170 Received-SPF: softfail client-ip=212.3.242.68; envelope-from=sebastien.rey-coyrehourcq@univ-rouen.fr; helo=wilbur.contactoffice.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_SOFTFAIL=0.665, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.29 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=1655062384; 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; bh=ONez+CLiQ1OEYS0ufETf3J0nT4aMDc5e+SaqWFJD3P0=; b=gyPRMBCuIFDbNrdAxZYEqbq/ERxZauSkVraX8lYVZ/OcC8Tqz0EOkAPmj5d5J1S3MKpB0f H2Mukryd8KHW7eUWbUGzDArG8umAdmtn1ajR4bHka5VJJziR016nSQFAJOXFZF4I5lbxxT AQaT1HxSxK5gcWU5Ek8isTXsIeJcF2EoAK7UIKMCuaF8l8rahOAEvSwiuJCFdsQlH9eiyr CoqOy5SK4OZY1Wu0eHfEgw5kXZlzJVPjta9ivtzBY/a2l9qt8vhwCAnnqlRk7ZKaK/SzH7 gM+L/yfSjgQ6Zd83GeXhDGRE1tnUD0eEIN9kwt5aBkzKRl2/d4r4oBBuffNwgg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1655062384; a=rsa-sha256; cv=none; b=auoGxX85GkcdhtLLa9VXTroHNJOWLhV7RB1wgYGzFDj5vGadnSe/yzcqh3X9SYaWj4OIk/ ZF1WVf271NGpDPO6qKT2Fkr6UP4UgUn8cHvTsAOHLsUMWXoewl9PMO+fzJ83K57zXtQVuw VAJmPjtcZ3chepsyJS6HtT7Vmlo4oDupj4KIoueMYteQ2p3SYK3sBz/srdZ/teoOP9GVAW lngcirnRIi5YOtDj0WrF4SAIi3wOr1cxb1rtd6CWJNuMSfdB+y+ONh2ZkMQKt0/gJ3iglG EgQ+Pv2ZrP4/sxxJHbWTugk5XQzcGX6rQrmuSChdLkSohxdKcA8Mqr9Umw+szg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; 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: -3.68 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; 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: 0FF1115BDB X-Spam-Score: -3.68 X-Migadu-Scanner: scn0.migadu.com X-TUID: +XGGaOyqmQJ8 Hi, I jump into guile world by learning and copy/pasting Dominic Martinez confi= g :)=C2=A0 Everything going pretty well but now i'm blocked with yubikey configuration= .=20 And without yubikey that contain your only private key to sign/decrypt ever= ything, that's a little complicated ... Running "gpg --card-status" my yubikey is correclty detected. That a good n= ews ... BUT that's all,=20 other command don't work, for example both :=20 gpg --list-secret-keys gpg --list-keys=20 don't ask pin, and return nothing when yubikey is plugged ...=C2=A0 gnome seahorse also see nothing ... emacs see anything when i try to decipher thing ... I reboot and retry without success ... I miss something with this $# gpg-agent conf ?=20 I post the home config here :=20 https://gitlab.com/reyman64/dotfiles June 1, 2022 10:38:09 PM CEST "S=C3=A9bastien Rey-Coyrehourcq" wrote:Thanks Julien, Daniel, Dominic, Efraim = for these very detailed answers=20 and snippets, that will be very useful in my current migration from=20 Ubuntu to Guix. I answer here if i need some highlights or if i found interesting=20 questions or remarks to share with you. Best regards, Le 26/05/2022 =C3=A0 02:31, Dominic Martinez a =C3=A9crit=C2=A0: > > S=C3=A9bastien Rey-Coyrehourcq = =20 > writes: > >> The only things holding me back at the moment is two things : >> >> a) doom emacs flavour, how to manage the fact that doom use straigt.el >> to maintain packages > > I don't think it's possible to use Doom with Guix emacs packages, but=20 > you can just set up Doom as you would on another distro. I did this=20 > while I transitioned to a Guix config, using ~home-files-service-type~=20 > to deploy my Doom config files. > >> b) "password / secrets" management ? >> >> There are two things, file to directly encrypt (like ssh key) and >> password to hide into configuration file (templating) >> >> b.1) So, that need to encrypt/decrypt more or less "on-the-fly" the >> files using gpg/yubikey or age like yadm (=20 >> https://yadm.io/docs/encryption ) or chezmoi >> (https://www.chezmoi.io/user-guide/encryption/gpg/) do ? > > I use small wrappers around GPG's built in encryption=20 > (https://git.sr.ht/~dominicm/dotfiles/tree/main/item/System.org#L2663)=20 > and decryption=20 > (https://git.sr.ht/~dominicm/dotfiles/tree/main/item/System.org#L2691)=20 > functions to manage secrets directly in my repository on the fly. Then=20 > I can have supported services call the script to get secrets without=20 > storing them in plain-text=20 > (https://git.sr.ht/~dominicm/dotfiles/tree/main/item/System.org#L1648). > >> b.2) And for templating, like replacing ${mypassword} into some >> configuration file by getting info stored into password manager like=20 >> "pass", i also don't know how to do that. > > Org makes this really convienent. Using noweb and shell scripts I can=20 > decrypt and insert secrets into templated areas when I tangle my=20 > configuration files. That way my repo only contains encrypted secrets,=20 > but as long as I have my GPG keys I can build my configuration files=20 > locally. See=20 > https://git.sr.ht/~dominicm/dotfiles/tree/main/item/System.org#L5 and=20 > https://git.sr.ht/~dominicm/dotfiles/tree/main/item/System.org#L1937. > >> c) synchronization of my .dotfiles between two different OS/System : >> Ubuntu (home) / Guix (work & home) > > I keep all my configuration in a git repository, then use ~guix home~=20 > to put all the files in the right places. As others have noted, there=20 > are many ways to identify the current system and do system-specific=20 > operations. I personally use an environment variable to keep track,=20 > and wrap guix operations with scripts that detect the system and use=20 > different system/home configurations=20 > (https://git.sr.ht/~dominicm/dotfiles/tree/main/item/System.org#L2366).= =20 > Then all I have to do is supply the script with the system name on the=20 > first run, and ~home-environment-variables-service-type~ takes it from=20 > there.