From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id 0AkJNoSPEmBPTAAA0tVLHw (envelope-from ) for ; Thu, 28 Jan 2021 10:18:44 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id 8K+/MYSPEmBoIAAAbx9fmQ (envelope-from ) for ; Thu, 28 Jan 2021 10:18:44 +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 D9B829402D6 for ; Thu, 28 Jan 2021 10:18:43 +0000 (UTC) Received: from localhost ([::1]:36728 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l54Nu-00012V-O5 for larch@yhetil.org; Thu, 28 Jan 2021 05:18:42 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:46498) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l54NM-0000ZQ-FQ for guix-devel@gnu.org; Thu, 28 Jan 2021 05:18:08 -0500 Received: from mailrelay.tugraz.at ([129.27.2.202]:41926) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l54NJ-00022p-MT for guix-devel@gnu.org; Thu, 28 Jan 2021 05:18:07 -0500 Received: from nijino.local (217-149-173-242.nat.highway.telekom.at [217.149.173.242]) by mailrelay.tugraz.at (Postfix) with ESMTPSA id 4DRGd30ryNz3x6W; Thu, 28 Jan 2021 11:17:58 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tugraz.at; s=mailrelay; t=1611829079; bh=cY5V+8oaJh+OM+5SdIOsDog0VDf/yM96AVtDwAReo7U=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=SkFnuQ4GHzhJ0PH9/rKE1r4LLRhwP8AATHUEQtbZVGbJWmuGKVaBt5fKR+kIB7FuM wFgjPFXM+r8ce2PtgsmVwb7Oe0MKC7arxR7XMTsosNT/gYDo+x4EY654e2iC+GbHvi EgnzU3Nf2gnlDtkZ4ZLEHIwy9TnnyW5jJYMP9bB0= Message-ID: Subject: Re: An idea regarding Guix Profiles From: Leo Prikler To: rg@raghavgururajan.name Date: Thu, 28 Jan 2021 11:17:58 +0100 In-Reply-To: <8fb526713a76ad993aef59e8a944f57751e970d7.camel@student.tugraz.at> References: <8fb526713a76ad993aef59e8a944f57751e970d7.camel@student.tugraz.at> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.34.2 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-TUG-Backscatter-control: bt4lQm5Tva3SBgCuw0EnZw X-Spam-Scanner: SpamAssassin 3.003001 X-Spam-Score-relay: -1.9 X-Scanned-By: MIMEDefang 2.74 on 129.27.10.116 Received-SPF: pass client-ip=129.27.2.202; envelope-from=leo.prikler@student.tugraz.at; helo=mailrelay.tugraz.at X-Spam_score_int: -42 X-Spam_score: -4.3 X-Spam_bar: ---- X-Spam_report: (-4.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=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: , Cc: guix-devel@gnu.org Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -3.05 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=tugraz.at header.s=mailrelay header.b=SkFnuQ4G; dmarc=pass (policy=none) header.from=student.tugraz.at; 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: D9B829402D6 X-Spam-Score: -3.05 X-Migadu-Scanner: scn0.migadu.com X-TUID: 1xojBMtIwcli Hello Raghav, looking at the way you phrased this in IRC, I just found out, that I misunderstood your mail. Basically, what you need to do to achieve something like that with Guix currently, would be to keep two (or more) config.scms and reconfigure each one after guix pull in a fixed order. Then you have: O + (K-1)*N + 1: first use case, latest generation O + (K-1)*N + 2: second use case, latest generation O + K*N: Nth use case, latest generation with a buffer of K generations. I'm not quite sure how you could better integrate this into GRUB -- perhaps there is an option to set a custom label? Then you'd have - GNU Guix (server config) #X - GNU Guix (desktop config) #Y - GNU Guix (other config config) #Z where #X, #Y and #Z are generation labels. Regards, Leo