From patchwork Sun Mar 13 21:52:59 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Ludovic_Court=C3=A8s?= X-Patchwork-Id: 661 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 9145927BBEA; Sun, 13 Mar 2022 21:54:10 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL, SPF_HELO_PASS autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 656EE27BBE9 for ; Sun, 13 Mar 2022 21:54:10 +0000 (GMT) Received: from localhost ([::1]:45270 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nTWAD-0001fN-GL for patchwork@mira.cbaines.net; Sun, 13 Mar 2022 17:54:09 -0400 Received: from eggs.gnu.org ([209.51.188.92]:35970) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nTWA6-0001fF-Os for guix-patches@gnu.org; Sun, 13 Mar 2022 17:54:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:49558) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nTWA6-00074m-Gb for guix-patches@gnu.org; Sun, 13 Mar 2022 17:54:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nTWA6-0007nO-A0; Sun, 13 Mar 2022 17:54:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#54377] [PATCH 0/3] Add 'guix home container' Resent-From: Ludovic =?utf-8?q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: andrew@trop.in, guix-patches@gnu.org Resent-Date: Sun, 13 Mar 2022 21:54:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 54377 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 54377@debbugs.gnu.org Cc: Ludovic =?utf-8?q?Court=C3=A8s?= , Andrew Tropin X-Debbugs-Original-To: guix-patches@gnu.org X-Debbugs-Original-Xcc: Andrew Tropin Received: via spool by submit@debbugs.gnu.org id=B.164720839229902 (code B ref -1); Sun, 13 Mar 2022 21:54:02 +0000 Received: (at submit) by debbugs.gnu.org; 13 Mar 2022 21:53:12 +0000 Received: from localhost ([127.0.0.1]:43455 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nTW9I-0007mC-7R for submit@debbugs.gnu.org; Sun, 13 Mar 2022 17:53:12 -0400 Received: from lists.gnu.org ([209.51.188.17]:35734) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nTW9G-0007m5-7s for submit@debbugs.gnu.org; Sun, 13 Mar 2022 17:53:11 -0400 Received: from eggs.gnu.org ([209.51.188.92]:35900) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nTW9G-0001bk-0O for guix-patches@gnu.org; Sun, 13 Mar 2022 17:53:10 -0400 Received: from [2001:470:142:3::e] (port=34762 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nTW9F-000726-O6; Sun, 13 Mar 2022 17:53:09 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:Subject:To:From:in-reply-to: references; bh=Yl14KND/SxGThYOtDNZZRtyLBeHxfWqtxfEsdO85n4A=; b=LYSU6EnuptfgvB nFauxt9ldJUcfUucvtSZVjOX60/PGlXu4fU9P/ehY4wQiDo7xAoB6lrYv+dez4iuIdhdCQJxBDMNp BK9+pPXHe6pt5zeUH5FnHhBre7BcsWhym5dTpqRE6ailHl8WMze2b6QVBFs09+xQRaGnYGudBsQGM z65KKThFQvEJWh4xPIUrKnr3RWZUVRH+yNaFOfvPCRMfNZt/xJdmEMJCiPeTGW1qKBaad2ZgF/EW0 DgRgeIwQ2fMnkSszpqKpLW16Rq1zlSpcihS7xdYWX3Fheg1yGfUEqWAbBdrqINL1/att31/dGqD70 oU8SKS6CT01n8OcE1Kiw==; Received: from 91-160-117-201.subs.proxad.net ([91.160.117.201]:49623 helo=gnu.org) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nTW9F-00037p-4I; Sun, 13 Mar 2022 17:53:09 -0400 From: Ludovic =?utf-8?q?Court=C3=A8s?= Date: Sun, 13 Mar 2022 22:52:59 +0100 Message-Id: <20220313215259.9394-1-ludo@gnu.org> X-Mailer: git-send-email 2.34.0 MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches Hello Guix! This patch series adds a ‘guix home container’ command. You can run: guix home container config.scm and you get an interactive shell, started as a login shell, where you can check the effect of your configuration. Handy! The code is a bit redundant with that of ‘guix environment’, but slightly different, so no obvious way to factorize it came to mind. Feedback welcome! Ludo’. Ludovic Courtès (3): linux-container: 'eval/container' honors #:namespaces. linux-container: Add #:guest-uid and #:guest-gid to 'eval/container'. guix home: Add 'container' command. doc/guix.texi | 58 +++++++ gnu/system/linux-container.scm | 15 +- guix/scripts/home.scm | 271 ++++++++++++++++++++++++++++++--- tests/guix-home.sh | 58 +++++-- 4 files changed, 359 insertions(+), 43 deletions(-) base-commit: d41c82b481fd0f5c7d45d6e2629fdf9d2085205b