[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/66: services: Add console-keymap service.
From: |
Manolis Fragkiskos Ragkousis |
Subject: |
01/66: services: Add console-keymap service. |
Date: |
Thu, 21 May 2015 12:51:46 +0000 |
phant0mas pushed a commit to branch wip-hurd
in repository guix.
commit 173fc65ed112dec3b1e8148663d32dc5062d205e
Author: Alex Kost <address@hidden>
Date: Sat Apr 25 22:52:29 2015 +0300
services: Add console-keymap service.
* gnu/services/base.scm (console-keymap-service): New procedure.
* doc/guix.texi (Base Services): Document it.
Co-authored-by: 宋文武 <address@hidden>
---
doc/guix.texi | 5 +++++
gnu/services/base.scm | 15 +++++++++++++++
2 files changed, 20 insertions(+), 0 deletions(-)
diff --git a/doc/guix.texi b/doc/guix.texi
index dd6af80..c68e291 100644
--- a/doc/guix.texi
+++ b/doc/guix.texi
@@ -4745,6 +4745,11 @@ passed to @command{guix-daemon}.
Run @var{udev}, which populates the @file{/dev} directory dynamically.
@end deffn
address@hidden {Monadic Procedure} console-keymap-service @var{file}
+Return a service to load console keymap from @var{file} using
address@hidden command.
address@hidden deffn
+
@node Networking Services
@subsubsection Networking Services
diff --git a/gnu/services/base.scm b/gnu/services/base.scm
index d0a2e8c..697b939 100644
--- a/gnu/services/base.scm
+++ b/gnu/services/base.scm
@@ -1,5 +1,6 @@
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2013, 2014, 2015 Ludovic Courtès <address@hidden>
+;;; Copyright © 2015 Alex Kost <address@hidden>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -46,6 +47,7 @@
swap-service
user-processes-service
host-name-service
+ console-keymap-service
console-font-service
udev-service
mingetty-service
@@ -313,6 +315,19 @@ stopped before 'kill' is called."
(else
(zero? (cdr (waitpid pid))))))))
+(define (console-keymap-service file)
+ "Return a service to load console keymap from @var{file}."
+ (with-monad %store-monad
+ (return
+ (service
+ (documentation
+ (string-append "Load console keymap (loadkeys)."))
+ (provision '(console-keymap))
+ (start #~(lambda _
+ (zero? (system* (string-append #$kbd "/bin/loadkeys")
+ #$file))))
+ (respawn? #f)))))
+
(define* (console-font-service tty #:optional (font "LatGrkCyr-8x16"))
"Return a service that sets up Unicode support in @var{tty} and loads
@var{font} for that tty (fonts are per virtual console in Linux.)"
- 06/66: build-system/gnu: 'dist-package' preserves the package's native inputs., (continued)
- 06/66: build-system/gnu: 'dist-package' preserves the package's native inputs., Manolis Fragkiskos Ragkousis, 2015/05/21
- 05/66: build-system/gnu: Adjust to removal of a "bin" output for Libtool., Manolis Fragkiskos Ragkousis, 2015/05/21
- 09/66: install: Add bash-completion to the packages., Manolis Fragkiskos Ragkousis, 2015/05/21
- 02/66: gnu: ebook: Drop circular inclusion of the module into itself., Manolis Fragkiskos Ragkousis, 2015/05/21
- 12/66: gnu: cppunit: Explicitly link with libdl., Manolis Fragkiskos Ragkousis, 2015/05/21
- 10/66: guix: packages: Add package-direct-sources and package-transitive-sources., Manolis Fragkiskos Ragkousis, 2015/05/21
- 13/66: gnu: Add librevenge., Manolis Fragkiskos Ragkousis, 2015/05/21
- 15/66: gnu: dejagnu: Update to 1.5.3., Manolis Fragkiskos Ragkousis, 2015/05/21
- 08/66: profiles: Store search paths in manifests., Manolis Fragkiskos Ragkousis, 2015/05/21
- 16/66: gnu: help2man: Update to 1.46.6., Manolis Fragkiskos Ragkousis, 2015/05/21
- 01/66: services: Add console-keymap service.,
Manolis Fragkiskos Ragkousis <=
- 14/66: gnu: Add libwpd., Manolis Fragkiskos Ragkousis, 2015/05/21
- 18/66: gnu: wpa-supplicant: Update to 2.4., Manolis Fragkiskos Ragkousis, 2015/05/21
- 07/66: hydra: Update Guix job set., Manolis Fragkiskos Ragkousis, 2015/05/21
- 11/66: guix: build: Add transitive source building., Manolis Fragkiskos Ragkousis, 2015/05/21
- 17/66: gnu: parallel: Update to 20150422., Manolis Fragkiskos Ragkousis, 2015/05/21
- 21/66: gnu: gnupg: Update to 2.1.3., Manolis Fragkiskos Ragkousis, 2015/05/21
- 20/66: gnu: Add dovecot., Manolis Fragkiskos Ragkousis, 2015/05/21
- 22/66: gnu: subversion: Update to 1.8.13., Manolis Fragkiskos Ragkousis, 2015/05/21
- 03/66: gnu: linux-libre: Update to 4.0.1., Manolis Fragkiskos Ragkousis, 2015/05/21
- 19/66: gnu: acpica: Update to 20150410., Manolis Fragkiskos Ragkousis, 2015/05/21