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 ms0.migadu.com with LMTPS id SRo/FturBGLidAEAgWs5BA (envelope-from ) for ; Thu, 10 Feb 2022 07:08:27 +0100 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 aC+mEturBGJukQAA9RJhRA (envelope-from ) for ; Thu, 10 Feb 2022 07:08:27 +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 8A3113C49C for ; Thu, 10 Feb 2022 07:08:26 +0100 (CET) Received: from localhost ([::1]:43830 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nI2cz-0007EM-2S for larch@yhetil.org; Thu, 10 Feb 2022 01:08:25 -0500 Received: from eggs.gnu.org ([209.51.188.92]:46932) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nI2be-0007DD-Vi for guix-patches@gnu.org; Thu, 10 Feb 2022 01:07:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:59486) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nI2bd-0005fl-RW for guix-patches@gnu.org; Thu, 10 Feb 2022 01:07:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nI2bd-0002sK-Nw for guix-patches@gnu.org; Thu, 10 Feb 2022 01:07:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#53912] [PATCH 0/5] WIP Add WSL support. Resent-From: Alex Griffin Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 10 Feb 2022 06:07:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 53912 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 53912@debbugs.gnu.org X-Debbugs-Original-To: "guix-patches@gnu.org" Received: via spool by submit@debbugs.gnu.org id=B.164447316810909 (code B ref -1); Thu, 10 Feb 2022 06:07:01 +0000 Received: (at submit) by debbugs.gnu.org; 10 Feb 2022 06:06:08 +0000 Received: from localhost ([127.0.0.1]:53368 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nI2am-0002pt-5M for submit@debbugs.gnu.org; Thu, 10 Feb 2022 01:06:08 -0500 Received: from lists.gnu.org ([209.51.188.17]:45846) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nI2ak-0002pl-AY for submit@debbugs.gnu.org; Thu, 10 Feb 2022 01:06:06 -0500 Received: from eggs.gnu.org ([209.51.188.92]:46626) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nI2af-00077k-R9 for guix-patches@gnu.org; Thu, 10 Feb 2022 01:06:05 -0500 Received: from mail-4317.proton.ch ([185.70.43.17]:44925) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nI2ac-0005Rj-65 for guix-patches@gnu.org; Thu, 10 Feb 2022 01:06:01 -0500 Date: Thu, 10 Feb 2022 06:05:43 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ajgrf.com; s=protonmail; t=1644473153; bh=NVBQYsPc3YRVH6Rv8k3copzW8GrTYIdSXJ4/lWVj5Xo=; h=Date:To:From:Reply-To:Subject:Message-ID:From:To:Cc:Date:Subject: Reply-To:Feedback-ID:Message-ID; b=c6xy8hXEeLjlCeBC+gLmJ0tOnYB13/TXenyBQYfU1oFii4gIbmbBmvUVWX4l58uK3 CuTdjNnyAXyuGCEfZBeRzzZuudKGmxF/+Su1Y9p8oY3ea6lM6zVDrRAIXrssqn208J jXnyagwR+G9hHue3hPJ8TGCsU46IODb3Cyp6j9OglQwLL+Sk41QNQWYYAXJAUw2dsL 56LHrhtsrvRvbQzoCYOMGD4uTqbzTm98WLwe22s7muwlei26dEzehor6Ma4PT5Iw1B iRFCwj9FGzpM7IGcbPlBlxuO1QuTPx3LLVN4N7OsmmlwD216alPCODFEdlLAo93lVl cyaZPiLtn2c3g== Message-ID: <875ypndznv.fsf@ajgrf.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.70.43.17; envelope-from=a@ajgrf.com; helo=mail-4317.proton.ch 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_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: 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+larch=yhetil.org@gnu.org Sender: "Guix-patches" Reply-to: Alex Griffin X-ACL-Warn: , Alex Griffin via Guix-patches From: Alex Griffin via Guix-patches via 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=1644473307; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=NVBQYsPc3YRVH6Rv8k3copzW8GrTYIdSXJ4/lWVj5Xo=; b=gvD4lQGLmeuAZTFU3tlbuNsuhAZ+QfZwX4kog/MyIB05gOiqYXhRw3Q5diizr95XlH79FB 0AoSp3G6hqkrnS5KEx57KsNG5Aa9G6XRywuJ/OvH1ldVG0BPCHdm/Kj3ornidV+VZkv/vo WpXKipcEwMwsk9G8+mqiUIzFo021PXbx28flhjDAGzX0em1gG1D0mZzYxoMPXd4/JJ0vRJ sidKHVZstSoI1OaP6SBr1GibTTW9qROhyX/OpCor9Do8dlvMmLnCEvO9U1oQbqQUkj9zDb Gftx4k52sIKAWOuT8BXzHY6d9SSWn03fIS72x1m3DDTqge0s3UK4PDLN3xOUzg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1644473307; a=rsa-sha256; cv=none; b=M/f246UzmixAMwXdYy//chUp0PDWcQPcz1rtl67H077cXDE7xCkwC97bF0lFZ79M8VbknE 6SLtko4OVpwJqVwpsGxC/kVfn1oF0IQsyjSrBry3nPcK/PiaKlLO9LsrRdZYy7qtIbBU88 bzxdxJ3goXWScTEn/pPZS0ZoPqSDkcf7YQOSl4SGcInBuod2IwcQdxUTmfedW3s7qmlBpQ NS78Mh67lpUUiTGcqt58m6AW0pA++P6XqNWROvxw/gQdH670kUIopF0eqBfWMmuC99a9B7 88RfoEWG/COGNY2Huj5+HX0xIwwC5snwlWVvOvx8MKtHhzoyQUep3YhMEfhQeA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=ajgrf.com header.s=protonmail header.b=c6xy8hXE; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -4.63 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=ajgrf.com header.s=protonmail header.b=c6xy8hXE; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 8A3113C49C X-Spam-Score: -4.63 X-Migadu-Scanner: scn0.migadu.com X-TUID: e1wEKW9ecZoE These patches are a work-in-progress, adding support for running Guix System under [WSL]. Windows Subsystem for Linux (WSL) lets developers run a GNU/Linux environment =E2=80=93 including most command-line tools, utilities, a= nd applications =E2=80=93 directly on Windows, unmodified, without the o= verhead of a traditional virtual machine or dual-boot setup. Things mostly just work already. To try it out, first generate an os tarball: =E2=94=8C=E2=94=80=E2=94=80=E2=94=80=E2=94=80 =E2=94=82 guix system image gnu/system/images/wsl.scm =E2=94=94=E2=94=80=E2=94=80=E2=94=80=E2=94=80 Then copy the result to your Windows system and run: =E2=94=8C=E2=94=80=E2=94=80=E2=94=80=E2=94=80 =E2=94=82 wsl --import guix ./guix/ image.tar.gz =E2=94=94=E2=94=80=E2=94=80=E2=94=80=E2=94=80 You can now run Guix System under WSL: =E2=94=8C=E2=94=80=E2=94=80=E2=94=80=E2=94=80 =E2=94=82 wsl -d guix =E2=94=94=E2=94=80=E2=94=80=E2=94=80=E2=94=80 The approach I took is copied from the [NixOS-WSL] project. Since WSL doesn=E2=80=99t run the guest distro=E2=80=99s init system, as a work-aroun= d I set the root user=E2=80=99s shell to a script that boots the system and then starts= a user login shell. Thanks, =E2=80=93 Alex Griffin [WSL] [NixOS-WSL]