From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id wA35M119j2MycAAAbAwnHQ (envelope-from ) for ; Tue, 06 Dec 2022 18:35:25 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id yP4dNF19j2PbUQEAauVa8A (envelope-from ) for ; Tue, 06 Dec 2022 18:35:25 +0100 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 64E7628262 for ; Tue, 6 Dec 2022 18:35:25 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p2bqN-0007s1-C4; Tue, 06 Dec 2022 12:34:59 -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 1p2bqL-0007qM-6i for help-guix@gnu.org; Tue, 06 Dec 2022 12:34:57 -0500 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p2bqH-0003UH-P0 for help-guix@gnu.org; Tue, 06 Dec 2022 12:34:56 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 26E52240101 for ; Tue, 6 Dec 2022 18:34:51 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1670348091; bh=PrUS7CH6nCnfR3xdQB9tInsqOW7h564PkTmlFgNSnbM=; h=From:To:Cc:Subject:Date:From; b=TEF1AIpbSq1qRO12d9m0QHj2po8BgqFA1/JJBBX4yKH3h2AYPtepszDFfpql2FkE9 mObXmNEcq4zkKlQOG5CPWpGfBWt3RpPkH5g+Bw4YF0SdoVKqa7bKjBkH+hYnWiNpOR EN0mB72T38GM7nbcBfF+/MMMGhJcjLI1M5MqLHrmEIb/COF4+gE6GRNF23GrwShnlK D0J0faBHkIgnqnX27AXxWQFXmMhSWRlD6vGECMyK39WuWtAvyXM3n4dQAb6v/1kMY8 e0WaqT/u2fMyxapz/nhbgRHgkVET5nepoWBLpCKF/UPEsf8NsgJhYPrNAAMU2BUgPs d49icdsUdv7Kw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4NRSGf2nqKz9rxM; Tue, 6 Dec 2022 18:34:50 +0100 (CET) References: <87o7shsld3.fsf@posteo.net> From: Elias Kueny To: kiasoc5 Cc: help-guix@gnu.org Subject: Re: How to make audio devices available with guix shell --container Date: Tue, 06 Dec 2022 17:01:17 +0000 In-reply-to: Message-ID: <878rjktozq.fsf@posteo.net> MIME-Version: 1.0 Content-Type: text/plain; format=flowed Received-SPF: pass client-ip=185.67.36.66; envelope-from=elias.kueny@posteo.net; helo=mout02.posteo.de 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, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: help-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1670348125; 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=PrUS7CH6nCnfR3xdQB9tInsqOW7h564PkTmlFgNSnbM=; b=od1cYZcRzyOjEKlMhQJHXnfMeHp7H2j/bA7PHTrbxrQpGjnsP0vwLKkGXStZEunEbm3TmA cfAM1ic0LqrfNG9HlEMl3dgxiK/bGJ7N8rZ4H7pzEvN8Jt5ym4Z6L680Bk6wVGPsmc0blk D56aaqtx3RfPGotWcVCI/nVYBKypdx5hOdQUKAKCG5DROC0TJawhwSgzIaYgCAHqE1fDhP 6TmsQCPGlMfN5t9WsdXRm75g0HGAvXn7UfBLiMAp0kt/L+yf1zinHKlbYCLJAtX/oG6Jgw wtJbFBb8CRtmmvUk9YSadMRbvuG4WUBRcbOlSXqfz8ClW82i/HmvPOHKcX7OEw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1670348125; a=rsa-sha256; cv=none; b=VmE+8vHm30UL93/QFOjE3lq+CJum+j5EVH48+yCrjSEwg1hycz4W4HKDogoiRQ2W3U/JNq wyHmNrJY+nKrmKdTSus/xddxtvV5kLmM6ENOH8CmNPC+cOTbxP+kia2C2CVGGbB9ZyH8t+ iQqysntM5idEZaVY2yxRPhizc8exgEXH6bA81J/TtRWAIgYo+n6S2BW1EvdOcb4LvGqiRR nUoEVeBc8DNaXbZiTZHDlYUMVmauKFJ1sVLGmH/+kJOW1XuzeXKGBHeO3H6JDVOE2Xg0/W nUt3Y5GupLHJ7LKbcj1Ze4+xa+9ggudmmhRZ8bnnl+cT+jC2K9A4C5we78IXaQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=TEF1AIpb; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -4.16 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=TEF1AIpb; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 64E7628262 X-Spam-Score: -4.16 X-Migadu-Scanner: scn1.migadu.com X-TUID: NJANb1eULCKy On Mon, Dec 05 2022, kiasoc5 wrote: > About the sound, I believe you will need to expose the pulseaudio > and/or pipewire sockets. You can reference bubblewrap configuration > since it also works by sharing/exposing files. > > https://wiki.archlinux.org/title/Bubblewrap/Examples#Chromium Thank you, that helped me progress. I noticed there were errors about not being able to connect to DBUS, now the following got rid of those: guix shell -C -N -P --no-cwd \ --share=/dev/ \ --preserve='^DISPLAY$' --preserve='^XAUTHORITY$' --expose="$XAUTHORITY" \ --preserve='^DBUS_.*' --expose=/var/run/dbus/system_bus_socket \ --expose="$XDG_RUNTIME_DIR/pulse" \ ungoogled-chromium -- chromium --app="https://meet.jit.si" With this, I can use the microphone (there is no default microphone available, but my internal microphone can be selected and works), but I still have no sound. ALSA throws the error "The field ipc_gid must be a valid group (create group audio)", and indeed /etc/group in the container doesn't contain an audio group (only users and overflow). But `--expose=/etc/group` prevents the creation of the container with the error "guix shell: error: rename-file: Device or resource busy". So the next question is: how does one uses groups in the container?