From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id WD2JBAJ6jmI8FAAAbAwnHQ (envelope-from ) for ; Wed, 25 May 2022 20:48:34 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id +LW2BAJ6jmKo5AAA9RJhRA (envelope-from ) for ; Wed, 25 May 2022 20:48:34 +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 3FB6B2EA32 for ; Wed, 25 May 2022 20:48:33 +0200 (CEST) Received: from localhost ([::1]:49880 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ntw3b-0007lw-Mq for larch@yhetil.org; Wed, 25 May 2022 14:48:31 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40628) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ntw2o-00077f-M9 for help-guix@gnu.org; Wed, 25 May 2022 14:47:42 -0400 Received: from flashner.co.il ([178.62.234.194]:59308) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ntw2k-0005zG-SF for help-guix@gnu.org; Wed, 25 May 2022 14:47:41 -0400 Received: from localhost (unknown [141.226.14.232]) by flashner.co.il (Postfix) with ESMTPSA id D82CA40098; Wed, 25 May 2022 18:47:36 +0000 (UTC) Date: Wed, 25 May 2022 21:45:54 +0300 From: Efraim Flashner To: Daniel =?utf-8?Q?Mei=C3=9Fner?= Cc: =?utf-8?Q?S=C3=A9bastien?= Rey-Coyrehourcq , Julien Lepiller , help-guix@gnu.org Subject: Re: Guix home, guix system, channels, some noob questions Message-ID: Mail-Followup-To: Daniel =?utf-8?Q?Mei=C3=9Fner?= , =?utf-8?Q?S=C3=A9bastien?= Rey-Coyrehourcq , Julien Lepiller , help-guix@gnu.org References: <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> <87ee0hhh19.fsf@ruhr-uni-bochum.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="hiwvGcLVUZitKZ3c" Content-Disposition: inline In-Reply-To: <87ee0hhh19.fsf@ruhr-uni-bochum.de> X-PGP-Key-ID: 0x41AAE7DCCA3D8351 X-PGP-Key: https://flashner.co.il/~efraim/efraim_flashner.asc X-PGP-Fingerprint: A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Received-SPF: pass client-ip=178.62.234.194; envelope-from=efraim@flashner.co.il; helo=flashner.co.il 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, SPF_HELO_PASS=-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=1653504513; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=aR7a4FIAUIKDYLaiqqeTVR5/9tDj/ELAHEqlQTq7p7E=; b=YrVUlsUZacUS5/TAvmhjA/p2LJNHko+424hhww80RN2Vj8kW4V5SuS/Uy31ZylZb245TX9 Bz16nzFYiH3riJoQw4OiaANZpu6vtv1+8BU48FSQ1bmvOA6Q5oPjSb3OVor7NfJ4fvA+zb P0jf1B8gFJe3AO+5ICyJJ2RSH95m8GSdsXNbt3LfrrG3hUh67JZhV67dfRmJPMQb3Wflgn uxDdVasQK2oGG6Vt3jxx7f2gBplJ/P5Gx3az3En6uLLfZhfFcwPy8FV3pHEtMsazpibjxm asLtsheulXLrUgaAknLkgIpdd2WzuRweRmaySrsgtenyaDKOa+cZj6wkRkTI5A== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1653504513; a=rsa-sha256; cv=none; b=epcIQV/NoDvVE9E/7apq4N9E/yE1YRgSKs88yJGxug+K8fviIO/u20PqIkdEsVloAvgqtI bhP2O/K09CG2Qm2qqyeMn1roANYBUk0E4sMQDAwwT/ICM0A8/h/WG7z5RcriODR4JC/no4 45Ps8fTUH1H0BaVvEEr8jAsU9ulbTF4x6q6PZxT7+Li7hYbXH7gepNr3qa2TDy9PidvRiO HOFtPm9YBugMZ4N848I9f/p6wZghnyaETZYSPjGy/CSZVteDgSZdxWj1sPnwP0ooEmO1FN //HoR42Oc38zWc5sjlrCEDVJX2AvocCIQFIz56AOmLW/ncXtHBC11RyeNhHI3g== 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: -5.74 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: 3FB6B2EA32 X-Spam-Score: -5.74 X-Migadu-Scanner: scn0.migadu.com X-TUID: IIe//EutDEAU --hiwvGcLVUZitKZ3c Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, May 25, 2022 at 03:34:58PM +0200, Daniel Mei=C3=9Fner wrote: > Hi S=C3=A9bastien, >=20 > S=C3=A9bastien Rey-Coyrehourcq writes: >=20 > > Thanks,=C2=A0 in fact when i see *guix home* that was my first intention > > (like home-manager in nix). > > > > 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 >=20 > I am sorry, I am not using Doom Emacs, so I cannot be of any help in > this regard. I manage my (relatively few) Emacs packages with Guix > directly. >=20 > > 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 ( > > https://yadm.io/docs/encryption ) or chezmoi > > (https://www.chezmoi.io/user-guide/encryption/gpg/) do ? > > > > b.2) And for templating, like replacing ${mypassword} into some > > configuration file by getting info stored into password manager like > > "pass", i also don't know how to do that. > > > > Actually I have no idea how to do that with guile / guix home for b.1 > > / b.2 >=20 > Yes, that's indeed a problem and I haven't come up with a solution. I > simply copy the respective files from machine to machine. Maybe someone > else on this list has a better idea... >=20 > > c) synchronization of my .dotfiles between two different OS/System : > > Ubuntu (home) / Guix (work & home) > > > > Lot of people use Ubuntu in my work environment, so i need to maintain > > some sort of compatibility between both systems for my dotfile (before > > everyone use guix in 2030 ? :D). > > > > I suppose guix home work well with guix on top of ubuntu ? >=20 > Yes, I think so, I haven't tested it though. You can, in principle, > adapt the generated dotfiles to the machines you're deploying them to. > You could, for example, use the hostname to distinguish them (untested): >=20 > --8<---------------cut here---------------start------------->8--- > (mixed-text-file > "test.txt" > "setting =3D " > #~(case (gethostname) > (("hosta") =3D> "foo") > (("hostb") =3D> "bar") > (else =3D> "foobar"))) > --8<---------------cut here---------------end--------------->8--- >=20 I check for /run/current-system/provenance=C2=B9 and based on that I make some changes to what gets placed in my dot-files. =C2=B9 https://git.sr.ht/~efraim/guix-config/tree/master/item/efraim-home.s= cm#L31 =C2=B2 https://git.sr.ht/~efraim/guix-config/tree/master/item/efraim-home.s= cm#L342-346 --=20 Efraim Flashner =D7=90=D7=A4=D7=A8=D7=99=D7=9D = =D7=A4=D7=9C=D7=A9=D7=A0=D7=A8 GPG key =3D A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Confidentiality cannot be guaranteed on emails sent or received unencrypted --hiwvGcLVUZitKZ3c Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAmKOeV8ACgkQQarn3Mo9 g1HtRg//ZNZXttzzIq4iHmvek2aspsQP3ovsYle1s1ssWXpFDijQ0Kvj+Lb1B3co 64Pq54UbvlqN+cxTL9Zh+TZ+P30l/ZlF3ax946vUgz/oy6efNO4raMQ1WXjxVEsr i8dEf7k5LOi9Qwf1lqesAqGwnj2/1v7mY1qAjvcceI7ZbatDXtxKxDtm7ZHYdtEl 2qCzSoP6/9yKacsa8pLf3M+3KK3VngRIoXH/qfE8OFf9yTmw2S6nD3+0VqT4hMVN 3MR89Mim4Q8ebXQXVEWU91yId5o+749B8jDP4WQBa4gVRqFTx23CnIXIdpdLWG7I +5QnXEBduKOnZfkZyxJGoDp4EVFpyz1akdraNTi52b8Ls+fr7ehR6mh9PZ0kAFuF wE8YoEiwEgXKiUHbcHIaAHJrhytc9bsOeo7Bq7FSJxrG/vKiafy8DhV3FQXLRL3k 2l4ZuYlP/+ZrXVLID7hq6VfEZe/9NJCmO/bQy1GPQGs7Uao2HMfEck0M/gCRhbXb mZY1mPZ+zNP7Uexk88YSSirNNNHBrocZHsP8BZV5uR7esgbkSFKiQdnXhUlkG4zj yVQ756OBpBSq/8lLvdmnTItnJqObj+UY4W7MNzgkLOZmmAX/rzPwQm9EPAo8qk1Q sRdaqW6rab37mMjtpDI5D/i5POxfKent7kTAf7YuqrEMn8DjQzk= =pPRm -----END PGP SIGNATURE----- --hiwvGcLVUZitKZ3c--