From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id UMxmDkRDzmXZhwAAqHPOHw:P1 (envelope-from ) for ; Thu, 15 Feb 2024 18:00:52 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id UMxmDkRDzmXZhwAAqHPOHw (envelope-from ) for ; Thu, 15 Feb 2024 18:00:52 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=FY8COvRM; spf=pass (aspmx1.migadu.com: domain of "guix-science-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-science-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1708016452; 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=dUe9a/slDjTbivBRYVtqQu94Gc2JyBVOnGTsEH/nL7U=; b=lO6YGf4pThWuN+qgyfTAjFur3w2uPW/GyXP4GPSsQkWwZF/ZQjBFj8So6LHdtdXQ24YvHa yhZynUBuvK65rzZTgbW0LxqKPQfkltfXpV5d5zIdqrfIPTfaHepIDJU2snrQx0Zwtt5JxU QvKouS5RWcIadf9ISV+UxvJtPYSYRpV3P8MyWaP3RXdt+8JtPsDMgJs4y3Bvhdjt1l7Bt/ aLGiZbtr+htEFPaLzjxElk9CEjsHQRmVRFddoXMWHLKm9WNzcJ64oOIkgL5E7QAC9eKCdv Bh3Tz+zk0fQm56Gq3jJJs2v1eGiK5oycI5ywTupR4YmjDSdBZvZRRtXX1jExmQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=FY8COvRM; spf=pass (aspmx1.migadu.com: domain of "guix-science-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-science-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gmail.com ARC-Seal: i=1; s=key1; d=yhetil.org; t=1708016452; a=rsa-sha256; cv=none; b=CIxXzjE6CNtad6a8OyNnQOiIeJCKhJjZNvZu7L0B+3ZocbxtRU/NpMWSGeEiYxlt/Yzvn1 GaqDWONawCoDZgTbVcjGSJFeT9ZdsaIAHWP8E5jcD4toQz81HfwUBCa4uOlTLbXev7NzyZ wTulurQFbuxAJ9b+BUZ+ZFenP2sCFdH9LFWMKd+oYUPQ7+OSeF3aPT4osvWj4TLRYcTdiv zFQYSJK5oImaVo/xScdzgZGUrhq1MJ2fvgd+2NExLKAiXN40bat5TaRju4aBEu1xlF0U9h aeEPhMayWA3d7jid2I/ZaZ1oaqvwiM9y6eqMRb1wG9DgskRrz0Jl7e7wgVmgFQ== 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 141CB62885 for ; Thu, 15 Feb 2024 18:00:51 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1raf6E-0007oQ-E8; Thu, 15 Feb 2024 12:00:40 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1raf5j-0007kC-2i; Thu, 15 Feb 2024 12:00:11 -0500 Received: from mail-wm1-x330.google.com ([2a00:1450:4864:20::330]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1raf5h-0007cK-80; Thu, 15 Feb 2024 12:00:06 -0500 Received: by mail-wm1-x330.google.com with SMTP id 5b1f17b1804b1-411f8e84e4fso644125e9.0; Thu, 15 Feb 2024 09:00:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1708016403; x=1708621203; darn=gnu.org; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:from:to:cc:subject:date:message-id :reply-to; bh=dUe9a/slDjTbivBRYVtqQu94Gc2JyBVOnGTsEH/nL7U=; b=FY8COvRMAVE7P13uHODk+Bk6vFnxYTZtZFRjBldgI/DoBPWdTGaNuGxPdLmIkrFl/N xs24FbSbT557mreVFd1J8ELHgoAjmEAyyplno7iILrvwJ/3iWNXr15byhpC/lrCP8NFl Wm4Osje85ZpEFm/xQVaTrHU4Y+Hwx4uWo8NtVzvBH6RPFO6gy2RGHfyYp3o9mNQKgVdt Kor7BUK30Qx7+Kwv1nka/3O32oE7XTtLH2N3zLj8w4u4JKHf+wGts2vp9+Otu6K9dQcC +MQ2uCk+a/v3BHp8jn+i9CX0YDB4DxOyzChZn8qXxHTf0+OnobtLE8kOIsU6JG08jTJb I9oA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708016403; x=1708621203; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=dUe9a/slDjTbivBRYVtqQu94Gc2JyBVOnGTsEH/nL7U=; b=H6Oj4HmficeUquSLVt4oC/K4QqVm7l7l2J3ozvL8dW3ttOhEqZjJcNVpk7qC8QH/R+ e0ql0tZ1cigQ7fyRrHY8OexdQMcnpvNB8mYiVsmDfh5eeDc+cfZoxhAfSsPWRH9BTjmw CutLdraEc7W8VcGORyhU2Tr5633DAm+y3PjgqIeepdoHMSwyFPuUfmlAejKZ/t6F0T2m fAynLkted+wQAgL40j8pVJ6lVz/QpoXQFTe3yWtc2zOQQ6ikXBkcphrpezqHxJdZgIT2 oTVKq7OV2gOMF8XMrAFrCfMQSEmjgh0ioAbPivNgWdceOnYMr/23sSaBtoCcR4Vp2Jqk xWig== X-Forwarded-Encrypted: i=1; AJvYcCXJKUfqcrih7uXYUJ1Ug9Jji2Y+4GL6bnV0tW67KYZk9NPA1eV46j/yf1Qf4QuZXM0VSF4f5csJ/IskZ5QTh/mMkFva/nzz8239aRVxisqt/MpTDeNWZHk= X-Gm-Message-State: AOJu0YwDVt5KC1ayG3J0aNm0ZiQgIuRRPDvMGrdgUVJC7sYJOr41zYMr X03yGOChyh6DcbYKw7hr1d/Vnj4dM4PEk2SUV3BQfvTZu+1SKdKQcWKOEWT0 X-Google-Smtp-Source: AGHT+IHnBwIW1KjSoYQZ4JGgE4Uul845pQNt913QilILhzAJSWUhG2/r/77WupYvTrS3tL/5r+3nmg== X-Received: by 2002:a05:600c:5118:b0:410:d7d2:da64 with SMTP id o24-20020a05600c511800b00410d7d2da64mr1847003wms.3.1708016403282; Thu, 15 Feb 2024 09:00:03 -0800 (PST) Received: from lili ([2a01:e0a:59b:9120:7d85:9c0b:111:5112]) by smtp.gmail.com with ESMTPSA id n9-20020a05600c294900b00410cc2f5550sm5519760wmd.19.2024.02.15.09.00.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Feb 2024 09:00:02 -0800 (PST) From: Simon Tournier To: "Etienne B. Roesch" , Ricardo Wurmus Cc: Felix Lechner , help-guix@gnu.org, guix-science@gnu.org Subject: Re: guix on nfs based systems In-Reply-To: References: <87pm00mxkg.fsf@lease-up.com> <87plz8alhc.fsf@mdc-berlin.de> Date: Thu, 15 Feb 2024 17:14:13 +0100 Message-ID: <87frxt7lii.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2a00:1450:4864:20::330; envelope-from=zimon.toutoune@gmail.com; helo=mail-wm1-x330.google.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_DNSWL_NONE=-0.0001, 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: guix-science@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-science-bounces+larch=yhetil.org@gnu.org Sender: guix-science-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Scanner: mx12.migadu.com X-Migadu-Spam-Score: -8.10 X-Spam-Score: -8.10 X-Migadu-Queue-Id: 141CB62885 X-TUID: FM8O01NVemib Hi =C3=89tienne, I am very late to the party. :-) Well, there is a discussion about =E2=80=9Cguix shell=E2=80=9D, =E2=80=9Cpr= ofile=E2=80=9D and =E2=80=9Cguix time-machine=E2=80=9D. Since these concepts can appear as first as alien, = let me try a quick summary of my understanding. + =E2=80=9Cguix shell=E2=80=9C creates a temporary profile; + =E2=80=9Cguix time-machine=E2=80=9D creates a temporary revision. For the plumbing details, both live under =E2=80=9C~/.cache/guix/=E2=80=9D = and all is managed automatically. An example: $ guix package -m manifest.smc -p /tmp/foo $ GUIX_PROFILE=3D"/tmp/foo" $ . "$GUIX_PROFILE/etc/profile" Instead, $ guix shell -m manifest.scm somehow does the same but the user does not manually manage the profile and activate it. This profile is automatically and transparently managed. Now, you might run =E2=80=9Cguix pull=E2=80=9D, so there is a chance that t= he next =E2=80=9Cguix shell=E2=80=9D will not build the same underlying profile. That=E2=80=99s = where =E2=80=9Cguix time-machine=E2=80=9D comes in. :-) You =E2=80=9Cfreeze=E2=80=9D one revision with =E2=80=9Cguix describe -f ch= annels > channels.scm=E2=80=9D then run guix time-machine -C channels.scm -- shell manifest.scm It is costly the first run, then all is cached. Somehow, this command could be seen as =E2=80=9Cconda env activate=E2=80=9C coupled to some lock = stuff. All that said, one thing to know: when is the cache cleaned up? There is a =E2=80=99last-expiry-cleanup=E2=80=99 that tracks and does the j= ob. Basically, you do not have to worry about this ~/.cache/guix/. All is automatically managed. When the user runs =E2=80=98guix gc=E2=80=99 or the sysadmin also =E2=80=99= guix gc=E2=80=99 then this cache is cleaned up if it is too old. Now the question is about what does it mean =E2=80=9Ctoo old=E2=80=9D? Alt= hough =E2=80=9Cguix time-machine -C channels.scm -- shell -m manifest.scm=E2=80=9D will rebuild= all if required, it can be at the wrong moment. Therefore, for some very specific environment that I want to protect from =E2=80=9Cguix gc=E2=80=9D,= I create a profile for them. Note it is rare and thanks many improvements, it becomes more and more useless. Obviously, if =E2=80=9Cguix gc=E2=80=9D is never run, the manual management= of =E2=80=9Cprofile=E2=80=9D is fully useless, IMHO. Cheers, simon