From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id oB8NLgFzP2HjcgAAgWs5BA (envelope-from ) for ; Mon, 13 Sep 2021 17:49:21 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id YOKsKQFzP2FNWgAAB5/wlQ (envelope-from ) for ; Mon, 13 Sep 2021 15:49:21 +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 7148522AA for ; Mon, 13 Sep 2021 17:49:21 +0200 (CEST) Received: from localhost ([::1]:51644 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mPoCu-0003Cn-Jl for larch@yhetil.org; Mon, 13 Sep 2021 11:49:20 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54596) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mPoCc-00038i-Bx for guix-devel@gnu.org; Mon, 13 Sep 2021 11:49:02 -0400 Received: from mail.cock.li ([37.120.193.124]:48788) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mPoCX-0008TT-6q for guix-devel@gnu.org; Mon, 13 Sep 2021 11:49:02 -0400 References: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=airmail.cc; s=mail; t=1631548125; bh=GHEjW/7rsPR9Ai3aEGEBVwW0qZoJIy3YdIbBUcYhpiY=; h=References:From:To:Cc:Subject:In-reply-to:Date:From; b=ldzntie7aLhd9V4NncGzUjRO87AqEehxT7XUAxDhfhH9Z1tVIeibL+wikAdGSkTEn G+MIjMVzeabRRkAIIMazFrfCHvLA2MWSotujyim5RxIJQ7tbeU5e7aGs7/B5kP6SFb qEjQT6xsh7IhaE+slHZSW84THiutvKGXJgnelChXPKKLMmYJHEvyA/nd2Dh4nh6pan S2puoj/h/vsjxOYWlIrVa1/BLfH5BaNx00ncloK8fwRrsR5H2IPdP9/uLbbRMiMnEY 3tON3KLpL8IjLT7L4MLRmrh9b0pRLJf5dF4itgh52VSlfhGeEVx3yHpPxdPFCNI0Tw 1TcOfm5FFOpQw== User-agent: mu4e 1.4.15; emacs 27.2 From: pinoaffe To: Ryan Prior Subject: Re: Named environments In-reply-to: Date: Mon, 13 Sep 2021 17:48:43 +0200 Message-ID: <87wnnka338.fsf@airmail.cc> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=37.120.193.124; envelope-from=pinoaffe@airmail.cc; helo=mail.cock.li 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, 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.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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1631548161; 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=GHEjW/7rsPR9Ai3aEGEBVwW0qZoJIy3YdIbBUcYhpiY=; b=QVxB8Rw6dE7qglosU6zyhfTVZBZpoFn0iSSLjkeXC0CCD8naz414YlyEP/R6S9DEs7Stfq O/euJpDLH4lPxUWf3GagbMxeOnA1EBK70RZbdhnyJJFkPm05E5SKd1gSQDdvFDTuzhed9I 91WuZI9beJZqGmS3t/0AP1QU/Ncy9uitbA432qJdAheiL8BQtqoffOXy3ysY/Tiyqp3AjS QLL2aorNiXxovMvpv7QUdsWtt7ttHjLyJ213qQw4SPGLUEPtXfTz3PJR2PiuasC4f6Emeg gP8vMbzxa6pHv/frKi4/+j9Pc0L7UzT5kpYOZNYDpOypDWwsNbBYIRgXT48dWg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1631548161; a=rsa-sha256; cv=none; b=LABPE9xMy9rdUqYIveTowmt5hfYSzXbStXOIAJaUs4kyg4wVgbCT43cjbY41RF26Bdd/SO IcKaqJ323sw4oZGLsUkHJrkjbJAHnlF+N3BEcwl1TTN408DyDdO/4+7qxSFX1xl80zb1GC ZPUNobf2KFNK8owFcALnX8QiGlDziHZbbrtjNsaxEjP35vDqwwDL7vCrmrPfx5TpkaguZz tEkhdJL4iCRktGo0BmKDurI2pQ0vO314j35fiq+qeVL10z3oFdSV+ilvM8rPhJ1cozTtP3 oOuC41sRWAEFPJBM3g7NSrqTmtNVism5SLiMd/0QZMjyMzt4wzxxmuEw4JCDpA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=airmail.cc header.s=mail header.b=ldzntie7; dmarc=none; 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.60 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=airmail.cc header.s=mail header.b=ldzntie7; dmarc=none; 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: 7148522AA X-Spam-Score: -2.60 X-Migadu-Scanner: scn0.migadu.com X-TUID: 6nERVQtywSaP Hey guix, to me, this sounds very similar to the features offered by profiles, which differences do you envision? blessings, pinoaffe Ryan Prior writes: > Hey Guix. > > I've been thinking lately it would be convenient to create certain uniquely named execution environments on my machine. For example, I might have one set up with dependencies for my Python webapp & environment variables set to autoconnect to a Postgres server. I might have another that's got test dependencies and is containerized, such that it can only access the network & not the rest of my filesystem. Suppose I name these two "webapp" and "test" respectively. > > I picture running eg `guix env @webapp -- uvicorn main:app` to start my server, then `guix env @test -- pytest` to run my tests. > > I might write a wrapper in some scripting language that sets up this kind of system. Would anybody else be interested in using such a thing? Would it make sense to integrate this capability into Guix itself? > > Ryan