From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id iBS/MCc23l7negAA0tVLHw (envelope-from ) for ; Mon, 08 Jun 2020 12:59:19 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id gMhYLCc23l6xDQAAbx9fmQ (envelope-from ) for ; Mon, 08 Jun 2020 12:59:19 +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 7731A9400D3 for ; Mon, 8 Jun 2020 12:59:19 +0000 (UTC) Received: from localhost ([::1]:60520 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jiHN0-00070y-Cx for larch@yhetil.org; Mon, 08 Jun 2020 08:59:18 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43392) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jiHMm-0006jq-0e for guix-patches@gnu.org; Mon, 08 Jun 2020 08:59:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:44589) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jiHMl-0008Ev-NX for guix-patches@gnu.org; Mon, 08 Jun 2020 08:59:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jiHMl-0001T6-Nx for guix-patches@gnu.org; Mon, 08 Jun 2020 08:59:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#41541] [PATCH 3/4] system: bare-hurd.tmpl: Add openssh client and service. Resent-From: "Jan (janneke) Nieuwenhuizen" Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 08 Jun 2020 12:59:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41541 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: 41541@debbugs.gnu.org Cc: Mathieu Othacehe , Ludovic =?UTF-8?Q?Court=C3=A8s?= Received: via spool by 41541-submit@debbugs.gnu.org id=B41541.15916211005559 (code B ref 41541); Mon, 08 Jun 2020 12:59:03 +0000 Received: (at 41541) by debbugs.gnu.org; 8 Jun 2020 12:58:20 +0000 Received: from localhost ([127.0.0.1]:56129 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jiHM3-0001Rb-N0 for submit@debbugs.gnu.org; Mon, 08 Jun 2020 08:58:20 -0400 Received: from eggs.gnu.org ([209.51.188.92]:35118) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jiHM2-0001Qo-5k for 41541@debbugs.gnu.org; Mon, 08 Jun 2020 08:58:18 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:47714) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jiHLw-00080h-Ry; Mon, 08 Jun 2020 08:58:12 -0400 Received: from [2001:980:1b4f:1:42d2:832d:bb59:862] (port=34142 helo=dundal.fritz.box) by fencepost.gnu.org with esmtpa (Exim 4.82) (envelope-from ) id 1jiHLu-00006C-2I; Mon, 08 Jun 2020 08:58:10 -0400 From: "Jan (janneke) Nieuwenhuizen" Date: Mon, 8 Jun 2020 14:58:01 +0200 Message-Id: <20200608125802.10617-4-janneke@gnu.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200608125802.10617-1-janneke@gnu.org> References: <20200608125802.10617-1-janneke@gnu.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -3.3 (---) 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" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Spam-Score: 3.99 X-TUID: 3CodwKGh8Smo This: ./pre-inst-env guix system disk-image --no-grafts --target=i586-pc-gnu \ gnu/system/examples/bare-hurd.tmpl now produces a VM image with functional ssh daemon that you may run like guix environment --ad-hoc qemu -- qemu-system-i386 -enable-kvm -m 512M \ -device rtl8139,netdev=net0 -netdev user,id=net0,hostfwd=tcp:127.0.0.1:10022-:2222 \ -snapshot -hda and use like ssh -p 10022 root@localhost guix build -e '(@@ (gnu packages commencement) gnu-make-boot0)' or even (if you use --image-size=3G) guix build hello * gnu/system/examples/bare-hurd.tmpl (%hurd-os)[packages]: Add openssh. [services]: Add openssh-service. --- gnu/system/examples/bare-hurd.tmpl | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/gnu/system/examples/bare-hurd.tmpl b/gnu/system/examples/bare-hurd.tmpl index 16f20416aa..6b421550b7 100644 --- a/gnu/system/examples/bare-hurd.tmpl +++ b/gnu/system/examples/bare-hurd.tmpl @@ -11,6 +11,8 @@ ;; it boots, but needs activation, more setup and services to be useful. (use-modules (gnu) (gnu system hurd) (guix utils)) +(use-service-modules ssh) +(use-package-modules ssh) (define %hurd-os (operating-system @@ -25,7 +27,14 @@ %base-file-systems)) (host-name "guixygnu") (timezone "Europe/Amsterdam") - (packages %base-packages/hurd) - (services %base-services/hurd))) + (packages (cons openssh %base-packages/hurd)) + (services (cons (service openssh-service-type + (openssh-configuration + (use-pam? #f) + (port-number 2222) + (permit-root-login #t) + (allow-empty-passwords? #t) + (password-authentication? #t))) + %base-services/hurd)))) %hurd-os -- 2.26.2