[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
26/44: system: hurd: Add openssh service.
From: |
guix-commits |
Subject: |
26/44: system: hurd: Add openssh service. |
Date: |
Tue, 21 Apr 2020 15:48:25 -0400 (EDT) |
janneke pushed a commit to branch wip-hurd-vm
in repository guix.
commit c7880b83acb94e8df5d938c48e061eb60aaa3656
Author: Jan (janneke) Nieuwenhuizen <address@hidden>
AuthorDate: Sun Apr 19 13:15:06 2020 +0200
system: hurd: Add openssh service.
* gnu/system/hurd.scm (%base-packages/hurd): Add openssh.
(%hurd-os): Add openssh-service.
(cross-hurd-image): Generate sshd_config. Add sshd user.
---
gnu/system/hurd.scm | 24 ++++++++++++++++++++----
1 file changed, 20 insertions(+), 4 deletions(-)
diff --git a/gnu/system/hurd.scm b/gnu/system/hurd.scm
index ff12e8f..bd08125 100644
--- a/gnu/system/hurd.scm
+++ b/gnu/system/hurd.scm
@@ -32,11 +32,14 @@
#:use-module (gnu packages guile-xyz)
#:use-module (gnu packages hurd)
#:use-module (gnu packages less)
+ #:use-module (gnu packages ssh)
#:use-module (gnu services)
#:use-module (gnu services base)
#:use-module (gnu services hurd)
#:use-module (gnu services shepherd)
+ #:use-module (gnu services ssh)
#:use-module (gnu system)
+ #:use-module (gnu system pam)
#:use-module (gnu system shadow)
#:use-module (gnu system vm)
#:export (cross-hurd-image))
@@ -65,14 +68,16 @@
(define %base-packages/hurd
(list hurd bash coreutils file findutils grep sed
guile-3.0 guile-colorized guile-readline
- net-base inetutils less shepherd which))
+ net-base inetutils less openssh shepherd which))
(define %base-services/hurd
(list (service hurd-user-processes-service-type)
(service hurd-console-service-type
(hurd-console-configuration (hurd hurd)))
(service hurd-ttys-service-type
- (hurd-ttys-configuration (hurd hurd)))))
+ (hurd-ttys-configuration (hurd hurd)))
+ (service hurd-loopback-service-type)
+ (syslog-service)))
(define %hurd-os
(operating-system
@@ -85,7 +90,15 @@
(timezone "GNUrope")
(name-service-switch #f)
(essential-services (hurd-essential-services this-operating-system))
- (services %base-services/hurd)
+ (services (cons (service openssh-service-type
+ (openssh-configuration
+ (use-pam? #f)
+ (openssh openssh)
+ (port-number 2222)
+ (permit-root-login #t)
+ (allow-empty-passwords? #t)
+ (password-authentication? #t)))
+ %base-services/hurd))
(pam-services '())
(setuid-programs '())))
@@ -127,6 +140,7 @@ fi\n")))
(account-service (append (operating-system-accounts os)
(operating-system-groups os))
(operating-system-skeletons os))
+ (pam-root-service (operating-system-pam-services os))
(hurd-etc-service os)
(service profile-service-type
(operating-system-packages os))))
@@ -241,6 +255,7 @@ menuentry \"GNU\" {
(plain-file "passwd"
"root:x:0:0:root:/root:/bin/sh
guixbuilder:x:1:1:guixbuilder:/var/empty:/bin/no-sh
+sshd:x:2:2:sshd:/var/empty:/bin/no-sh
"))
(define group
@@ -250,7 +265,7 @@ guixbuilder:x:1:1:guixbuilder:/var/empty:/bin/no-sh
(define shadow
(plain-file "shadow"
- "root::0:0:0:0:::
+ "root::17873::::::
"))
;; XXX This still gives 64bit .go files
@@ -319,6 +334,7 @@ guixbuilder:x:1:1:guixbuilder:/var/empty:/bin/no-sh
"i586-pc-gnu"))
hurd)
"/etc/ttys"))
+ (directory "/etc/ssh")
("/etc/shepherd.conf" -> ,shepherd.conf)
("/bin/sh" -> ,(file-append (with-parameters ((%current-target-system
"i586-pc-gnu"))
- 22/44: services: Add openssh-service as a Hurd service., (continued)
- 22/44: services: Add openssh-service as a Hurd service., guix-commits, 2020/04/21
- 21/44: services: hurd: Add dummy loopback., guix-commits, 2020/04/21
- 19/44: services: Add guix-daemon-service as a Hurd service., guix-commits, 2020/04/21
- 27/44: system: hurd: Create system profile for guix development., guix-commits, 2020/04/21
- 25/44: system: gnu: Populate "/etc" from "/boot/activation"., guix-commits, 2020/04/21
- 30/44: gnu: guix: Fix cross-compilation., guix-commits, 2020/04/21
- 34/44: gnu: guix: Add dependency on `hurd' when building for the Hurd., guix-commits, 2020/04/21
- 07/44: gnu: hurd: Fix references to /bin/w., guix-commits, 2020/04/21
- 17/44: services: Add hurd-ttys-service-type., guix-commits, 2020/04/21
- 20/44: services: hurd: Add dummy syslog., guix-commits, 2020/04/21
- 26/44: system: hurd: Add openssh service.,
guix-commits <=
- 31/44: gnu: guix: Cross-build fixup for wrap-program., guix-commits, 2020/04/21
- 13/44: system: hurd: Add less, which to %base-packages/hurd., guix-commits, 2020/04/21
- 12/44: gnu: Add libtirpc/hurd., guix-commits, 2020/04/21
- 08/44: gnu: hurd: Use default Qemu guest ip: 10.0.2.15., guix-commits, 2020/04/21
- 28/44: system: gnu: Add %bootstrap-{gcc, binutils, glibc} for devel profile., guix-commits, 2020/04/21
- 24/44: HACK use uncompiled .scm for shepherd, guix-commits, 2020/04/21
- 23/44: system: hurd: Add the Shepherd., guix-commits, 2020/04/21
- 33/44: gnu: guix: Apply courage for the Hurd., guix-commits, 2020/04/21
- 35/44: system: hurd: Add guix., guix-commits, 2020/04/21
- 36/44: system: hurd: Add the guix service., guix-commits, 2020/04/21