From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id aIHSOe8XWmGycAEAgWs5BA (envelope-from ) for ; Sun, 03 Oct 2021 22:51:59 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id 2BmXNe8XWmF/XwAA1q6Kng (envelope-from ) for ; Sun, 03 Oct 2021 20:51:59 +0000 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 8798B14133 for ; Sun, 3 Oct 2021 22:51:59 +0200 (CEST) Received: from localhost ([::1]:59626 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mX8Sk-0003Io-NP for larch@yhetil.org; Sun, 03 Oct 2021 16:51:58 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:49526) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mX8SQ-0003IY-G5 for guix-devel@gnu.org; Sun, 03 Oct 2021 16:51:38 -0400 Received: from mail-0301.mail-europe.com ([188.165.51.139]:50145) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mX8SO-0004d4-Ee for guix-devel@gnu.org; Sun, 03 Oct 2021 16:51:38 -0400 Date: Sun, 03 Oct 2021 20:51:20 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail; t=1633294284; bh=P27scWkw7cVrbq5C3lce+pODecEctFUC77VJM8OdwiI=; h=Date:To:From:Reply-To:Subject:From; b=crx9C1UAbrPKIy6/SRAM/Wi8n7gLpYFvKf7ZgAfpHqSXmT0BXwt10fGHI3myZOtDU /bDpKWvrZL6J0tAOLRY+ZyNq1FLBCATeZBX/28YT+uMXZ9uCTcka0oCSZ93anqgUAt qLwrlQK9IYhqcF2eiN0zH23JDLOQuPXOdZN2OPLk= To: "guix-devel@gnu.org" , Liliana Marie Prikler From: John Kehayias Subject: Re: Multiple profiles with Guix Home Message-ID: <7nkZufNTrqBYhGd8or6FsspA9XHXSl0MuB_CLn2xCN3Xue04DzDrvtfaygDw3GMqS0eV1LeWopmrf0BrhJyHIUBmr0XyBHc-cSvn0b6KVP4=@protonmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=188.165.51.139; envelope-from=john.kehayias@protonmail.com; helo=mail-0301.mail-europe.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, FREEMAIL_FROM=0.001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: John Kehayias Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1633294319; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=P27scWkw7cVrbq5C3lce+pODecEctFUC77VJM8OdwiI=; b=kuMdFMXuyQK8CtPX3RNfgTiHYRuiUW8KhMSpJpjDxYM7+evwa3fGdW73ylFuIzVzNt6e9W SA7t3CyTGvWrbdYGwwkH1vlgdBeE1bfomUGKH1f3GhGVqpd4pneh2/ghUgoFXHrEUwgUYv 2Bw5y5mop5vnyyDmEcS5sxn+tNIiCTnSVUJgDOsNCNhSUHtCmdFRpidp/IuPzDkxEfP2E/ IksbO7tCKqVTH4+1DSRfpU7IqMbp21xPdsxVLYk1BzLW0vPavuPRK3FTmg6zVxXo9wZcdb Vul7Cn4O7vmyApqTZHsCuzBMtYbNmP5RO5783n2pIj/myLE24aiNWhX+oOslwg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1633294319; a=rsa-sha256; cv=none; b=HqniTsF+fEI1CEC83zaSZi87nWRyaeAPQVYOLWkfDFxuK1SmZBjngceeUoyvgTnq5v1wer WZPDLpVipJZRy6mGXE3OZkmuKyDgsazCaqJTqFq3tUjmw1RwypBPuxRphhfqxzTc9aig/W 1BJPMWRkFcCrre95c6IwJ0eJkXS+ozAQ7hAKNvvWjRcndgJB6L14njBvuj7hFv6AQdCPiA MTmEaGEsJSqolSOgZxpJMr0GY+Byd9a6NLHF0QuSNNsrC3ZjN8AQ8xT2PsrtWAB/e/RJxp JkCSW78Z9JSeKTVlXGvR2K3lnRiZMuZg+LOxwdJL+SmRQNQCB8clj8HXeqLMTw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=protonmail.com header.s=protonmail header.b=crx9C1UA; dmarc=pass (policy=quarantine) header.from=protonmail.com; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Migadu-Spam-Score: -2.11 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=protonmail.com header.s=protonmail header.b=crx9C1UA; dmarc=pass (policy=quarantine) header.from=protonmail.com; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Migadu-Queue-Id: 8798B14133 X-Spam-Score: -2.11 X-Migadu-Scanner: scn0.migadu.com X-TUID: SV5BgnYykbSY Hello Liliana and Guix-ers, I like this idea as a more integrated way of using multiple profiles in Gui= x, which I think is a unique and powerful feature of Guix. Having more firs= t class citizen support of profiles I think is long overdue. Thanks for the= proposal! I'm curious about what else we can then build into this service that might = help some of the issues around multiple profiles that have come up before. = At the very least it seems this would be a good building block for doing op= erations where otherwise you'd have to do a bit of looping over profiles (a= s suggested in the Cookbook, and I think many of us do on our own) like upd= ating packages. There are also some issues that have been raised before that I think this c= ould help address, so here are a few that I've seen that could have some re= levance here. Mostly around search-paths and environment variables that get= tricky with multiple profiles active. Perhaps not all relevant, but I want= ed to cross-reference some related (to me, at least) discussions around mul= tiple profile support in Guix: Recently, we discussed this in the context of some environment variables li= ke XDG_DATA_DIRS, and the more elusive XDG_CONFIG_DIRS here https://issues.= guix.gnu.org/50103 The issues is with search-paths and different profiles = (e.g. needing a glib package to make sure XDG_DATA_DIRS gets updated). With= a more integrated approach to multiple profiles, could this help with comb= ined search-paths? Older, with dbus: https://issues.guix.gnu.org/48538 Here there is a hardco= ded default user profile lookup https://git.savannah.gnu.org/cgit/guix.git/= tree/gnu/services/xorg.scm#n851 Finally, I think this proposal subsumes the old discussion on https://issue= s.guix.gnu.org/20255 and I think would be more "canonical" with Guix Home = now part of Guix. Anyway, Guix Home does look like a good fit for better profile support and = these related edge cases with profiles. I'll just summarize my current usag= e of profiles, which I think others do as well as it comes from the Cookboo= k. I have several profiles for different sets of packages, like "desktop," = "emacs," and so on, with the default ~/.guix-profile being a testing ground= or to quickly use something (temporarily or before moving into a profile).= ~/.config/guix has a profiles directory to store each of these and a manif= ests directory to store the manifests for each. I use a simple bash loop to= e.g. guix package for each profile to update with the manifest, or guix gc= to clean up. Hope this is helpful for this discussion, John