[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
34/42: services: hurd: Move hurd-etc-sevcices.
From: |
guix-commits |
Subject: |
34/42: services: hurd: Move hurd-etc-sevcices. |
Date: |
Sat, 25 Apr 2020 13:45:09 -0400 (EDT) |
janneke pushed a commit to branch wip-hurd-vm
in repository guix.
commit 38b0af8d16072294a8c81333fc7cf894c60bd5b1
Author: Jan (janneke) Nieuwenhuizen <address@hidden>
AuthorDate: Sat Apr 25 11:55:56 2020 +0200
services: hurd: Move hurd-etc-sevcices.
* gnu/system/hurd.scm: Move hurd-etc-service
(hurd-etc-service): from here ...
gnu/services/hurd.scm (hurd-etc-service): ... to here.
---
gnu/services/hurd.scm | 28 ++++++++++++++++++++++++++++
gnu/system/hurd.scm | 23 -----------------------
2 files changed, 28 insertions(+), 23 deletions(-)
diff --git a/gnu/services/hurd.scm b/gnu/services/hurd.scm
index bdc7be52..80c16d5 100644
--- a/gnu/services/hurd.scm
+++ b/gnu/services/hurd.scm
@@ -17,11 +17,13 @@
;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
(define-module (gnu services hurd)
+ #:use-module (gnu packages admin)
#:use-module (gnu packages hurd)
#:use-module (gnu packages ssh)
#:use-module (gnu services)
#:use-module (gnu services base)
#:use-module (gnu services shepherd)
+ #:use-module (gnu system)
#:use-module (gnu system shadow)
#:use-module (guix gexp)
#:use-module (guix modules)
@@ -31,6 +33,7 @@
#:use-module (ice-9 match)
#:export (hurd-console-configuration
hurd-console-service-type
+ hurd-etc-service
hurd-loopback-service-type
hurd-service->shepherd-service
hurd-ttys-configuration
@@ -58,6 +61,31 @@
;;;
+;;; The ETC service for the Hurd.
+;;;
+
+(define (hurd-etc-service os)
+ "Return a <service> that builds containing the static part of the /etc
+directory."
+ (let ((profile (mixed-text-file "profile" "\
+# Generated by hurd-etc-services
+export PS1='\\u@\\h\\$ '
+
+GUIX_PROFILE=\"/run/current-system/profile\"
+. \"$GUIX_PROFILE/etc/profile\"
+
+GUIX_PROFILE=\"$HOME/.guix-profile\"
+if [ -f \"$GUIX_PROFILE/etc/profile\" ]; then
+ . \"$GUIX_PROFILE/etc/profile\"
+fi\n")))
+ (etc-service
+ `(("services" ,(file-append net-base "/etc/services"))
+ ("protocols" ,(file-append net-base "/etc/protocols"))
+ ("profile" ,#~#$profile)
+ ("hostname" ,(plain-file "hostname" (operating-system-host-name
os)))))))
+
+
+;;;
;;; Bridge for guix-daemon.
;;;
diff --git a/gnu/system/hurd.scm b/gnu/system/hurd.scm
index 5d9d102..4873b8c 100644
--- a/gnu/system/hurd.scm
+++ b/gnu/system/hurd.scm
@@ -145,29 +145,6 @@
(define operating-system-etc-directory
(@@ (gnu system) operating-system-etc-directory))
-(define (hurd-etc-service os)
- "Return a <service> that builds containing the static part of the /etc
-directory."
- (let ((net-base (with-parameters ((%current-target-system
- "i586-pc-gnu"))
- net-base))
- (profile (mixed-text-file "profile" "\
-# Generated by hurd-etc-services
-export PS1='\\u@\\h\\$ '
-
-GUIX_PROFILE=\"/run/current-system/profile\"
-. \"$GUIX_PROFILE/etc/profile\"
-
-GUIX_PROFILE=\"$HOME/.guix-profile\"
-if [ -f \"$GUIX_PROFILE/etc/profile\" ]; then
- . \"$GUIX_PROFILE/etc/profile\"
-fi\n")))
- (etc-service
- `(("services" ,(file-append net-base "/etc/services"))
- ("protocols" ,(file-append net-base "/etc/protocols"))
- ("profile" ,#~#$profile)
- ("hostname" ,(plain-file "hostname" (operating-system-host-name
os)))))))
-
(define (hurd-essential-services os)
(list (service system-service-type '() ;;entries
)
- 30/42: system: hurd: Create system profile for guix development., (continued)
- 30/42: system: hurd: Create system profile for guix development., guix-commits, 2020/04/25
- 28/42: system: gnu: Populate "/etc" from "/boot/activation"., guix-commits, 2020/04/25
- 31/42: system: gnu: Add %bootstrap-{gcc, binutils, glibc} for devel profile., guix-commits, 2020/04/25
- 07/42: gnu: guix: Cross-build fix: override compressors., guix-commits, 2020/04/25
- 25/42: services: hurd: Add dummy loopback., guix-commits, 2020/04/25
- 19/42: services: Add hurd., guix-commits, 2020/04/25
- 27/42: system: hurd: Add the Shepherd., guix-commits, 2020/04/25
- 33/42: system: hurd: Add the guix service., guix-commits, 2020/04/25
- 41/42: system: hurd: Add hurd-grub-minimal-bootloader., guix-commits, 2020/04/25
- 16/42: gnu: Add libtirpc/hurd., guix-commits, 2020/04/25
- 34/42: services: hurd: Move hurd-etc-sevcices.,
guix-commits <=
- 36/42: services: hurd: Move hurd-default-essential-services., guix-commits, 2020/04/25
- 39/42: services: hurd: Use cons as extend method., guix-commits, 2020/04/25
- 38/42: services: hurd: Use hurd-file-systems-service., guix-commits, 2020/04/25
- 32/42: system: hurd: Add guix., guix-commits, 2020/04/25
- 35/42: services: Add hurd-file-systems-service-type., guix-commits, 2020/04/25
- 40/42: system: hurd: Add hurd-grub-configuration-file., guix-commits, 2020/04/25
- 37/42: system: hurd: Export system variables., guix-commits, 2020/04/25
- 42/42: DRAFT system: examples: Add bare-hurd.tmpl., guix-commits, 2020/04/25