From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id CACIOK4fLmQgrAAASxT56A (envelope-from ) for ; Thu, 06 Apr 2023 03:26:06 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id mACEOK4fLmTJSgAA9RJhRA (envelope-from ) for ; Thu, 06 Apr 2023 03:26:06 +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 B3008C193 for ; Thu, 6 Apr 2023 03:26:05 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pkENb-0002QM-FK; Wed, 05 Apr 2023 21:25:35 -0400 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 1pkENW-0002Q5-Vc for guix-devel@gnu.org; Wed, 05 Apr 2023 21:25:31 -0400 Received: from mx0.riseup.net ([198.252.153.6]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pkENV-0002M6-7G for guix-devel@gnu.org; Wed, 05 Apr 2023 21:25:30 -0400 Received: from fews2.riseup.net (fews2-pn.riseup.net [10.0.1.84]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mail.riseup.net", Issuer "R3" (not verified)) by mx0.riseup.net (Postfix) with ESMTPS id 4PsP2D6f0Qz9sQP; Thu, 6 Apr 2023 01:25:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1680744325; bh=3MinfhxCWSsTMuRMYk+2LDnEMtaNtHLewpo8Lm3Vp+I=; h=References:From:To:Cc:Subject:Date:In-reply-to:From; b=s17Qt+Hlj3hiOjZLmnQ1FspKsSEU1WhiAhY/9auF1K/nlEfS1AJbGQIxCER6u4lXt 4IBVwt8NAka1cJ+b0SRrjXw+t6cv3aTRbp0nQnhthGVS27KYLdFn39flT+hTArF7HI YZ9ntskN4FvpJi0pqoVT5gavsZ+nb6AsRnrpvCng= X-Riseup-User-ID: 202F1834F113B6EF50F26857383A40BC22B41586080F55E882A8AB826A11CAB9 Received: from [127.0.0.1] (localhost [127.0.0.1]) by fews2.riseup.net (Postfix) with ESMTPSA id 4PsP2C51htz1yNK; Thu, 6 Apr 2023 01:25:23 +0000 (UTC) References: <86sfdnrhn1.fsf@posteo.net> From: Csepp To: Shivam Madlani Cc: pukkamustard , Attila Lendvai , Christopher Baines , guix-devel@gnu.org Subject: Re: Hello GUIX Date: Thu, 06 Apr 2023 03:23:38 +0200 In-reply-to: Message-ID: <87zg7lx0n4.fsf@riseup.net> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=198.252.153.6; envelope-from=raingloom@riseup.net; helo=mx0.riseup.net X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-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.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: guix-devel-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1680744366; a=rsa-sha256; cv=none; b=uZTInEeCpUcsiq71Uhq5qXYwMiThRzVFg3jDvzZGP3W0lHA3Sz9IWrmnQjyXHB2d+FeFX/ L80587zjgwtqoDUAKj1q/mLL6hivVJfTL/JwMPIgtFR/EnrftBSrwLiWb7yEbjeQ4vO+rg q1v8dR6o9rkrQ9jORCQCinFULAUBu/+h22Mi6uBlFsfp3WLsePw53lg3dFND/Pci5dZLX5 Im3R38WIp7E9YWO9oQaj0LBQ3P/SBw4pU5X/j5VFoTczjMmeaFIb6a0tFpegBBDwFOjVC8 Hkw7fX4cUFdXYvVHC7wpa8o3qd/WMJq0TRFw4aOntPqZeUuHhBhy/VIN8HwJ4A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=riseup.net header.s=squak header.b=s17Qt+Hl; dmarc=pass (policy=none) header.from=riseup.net; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1680744366; 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:dkim-signature; bh=BrzGFWI1pM3HFSl4x+1U3YrFmrTfV+RfSVcvX8qmBqo=; b=Ffd8zmbu4Cd9pe5KO6GfIybpkYtseQXW00DHRU7McYMGRaXUwHAyPfOD343r931LRgLQsU /o5WfvAZT8M1rm+zyMGuY/PqJ148jIqYFDRmo8UXzmHcGeg/mO5STxsUQTY/Q6AsQM+xcB /4waL+9oFe5fr4ffZCRUlIRLMW83+1OVAlm0WFlTDcn5Ra3DEdVAOBhLA4sNBQPpFngIiz 2Isit+oYF+8VTkb48ioAMQ38GWa166m0vqwBsy3qAxACGhXHdCCNz3dn9U0a9zLCasOKuJ IuGLkRPQtQN6GBueE43aYS4HbH80BwflytzcyA3PtVQdXvx3ItHV4hgpRgIl6w== X-Migadu-Spam-Score: -5.10 X-Migadu-Scanner: scn1.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=riseup.net header.s=squak header.b=s17Qt+Hl; dmarc=pass (policy=none) header.from=riseup.net; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Spam-Score: -5.10 X-Migadu-Queue-Id: B3008C193 X-TUID: 9coEC5TSxPAa Shivam Madlani writes: > Thanks a lot for the feedback!! > >> Reading from a disk maybe should happen automagically if it can be >> detected (and is enabled in some configuration). This might also >> require some integration with udisks. The complexity of this should >> not be underestimated. > > We can set it up in such a way that on running `guix install {xyz}` it will first check for mounted drives in /media > directory and install {xyz} if it's present in the drive. > >> Writing packages to a USB stick seems to be closer to a `guix >> publish` or `guix deploy`. Maybe you can read up on those commands >> and think of a nice way to publish or deploy a set of packages to a >> USB stick. This is also relevant for publishing to other p2p >> networks (IPFS, GNUnet, etc.). > > Perhaps, We can introduce a new utility? (maybe something like `guix sneak`). This will scan for external drives > and on detecting a drive it will encode and store the nars into it. > The size of the drive can cause an issue here in case the content to be encoded is very large. In this case an > appropriate error message will be displayed. Although this is rare as flash drives/hard drives have a lot of storage > capacity these days but it's still a thing to consider. > > Another way would be to use `guix publish` itself to do all of this. We can introduce a flag `--sneak` which instead > of spawning an HTTP server, encodes and stored into the drive. But i don't think we should modify an already > existing utility for this. I would like to hear your thoughts on this. The NNCP utility might be worth taking a look at. There is a way to set it up alongside udev to automatically transfer files from connected USB storage.