[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#36404] [PATCH 4/6] Export the (gnu machine) interface.
From: |
Jakob L. Kreuze |
Subject: |
[bug#36404] [PATCH 4/6] Export the (gnu machine) interface. |
Date: |
Thu, 27 Jun 2019 14:40:57 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux) |
This is so machine declarations can have a simple (use-modules (gnu))
rather than having to import the machine module explicitly.
2019-06-26 Jakob L. Kreuze <address@hidden>
* gnu.scm (%public-modules): Add '(gnu machine)'.
* gnu.scm (use-machine-modules): New macro.
---
gnu.scm | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/gnu.scm b/gnu.scm
index 2c29b6dc3f..fa643a5b92 100644
--- a/gnu.scm
+++ b/gnu.scm
@@ -27,7 +27,8 @@
#:use-module (guix packages)
#:use-module (gnu packages)
#:use-module (gnu services)
- #:export (use-package-modules
+ #:export (use-machine-modules
+ use-package-modules
use-service-modules
use-system-modules))
@@ -45,6 +46,7 @@
(gnu system file-systems)
(gnu bootloader)
(gnu bootloader grub)
+ (gnu machine)
(gnu system keyboard)
(gnu system pam)
(gnu system shadow) ; 'user-account'
@@ -142,6 +144,10 @@ Try adding @code{(use-service-modules ~a)}.")
(current-source-location))
hint)))
+(define-syntax-rule (use-machine-modules module ...)
+ (try-use-modules package-module-hint
+ (gnu machine module) ...))
+
(define-syntax-rule (use-package-modules module ...)
(try-use-modules package-module-hint
(gnu packages module) ...))
--
2.22.0
- [bug#36404] [PATCH 0/6] Add 'guix deploy'., Jakob L. Kreuze, 2019/06/27
- [bug#36404] [PATCH 1/6] Take another stab at this whole guix deploy thing., Jakob L. Kreuze, 2019/06/27
- [bug#36404] [PATCH 2/6] ssh: Add 'identity' keyword to 'open-ssh-session'., Jakob L. Kreuze, 2019/06/27
- [bug#36404] [PATCH 3/6] gnu: Add machine type for deployment specifications., Jakob L. Kreuze, 2019/06/27
- [bug#36404] [PATCH 4/6] Export the (gnu machine) interface.,
Jakob L. Kreuze <=
- [bug#36404] [PATCH 5/6] Add 'guix deploy'., Jakob L. Kreuze, 2019/06/27
- [bug#36404] [PATCH 6/6] doc: Add section for 'guix deploy'., Jakob L. Kreuze, 2019/06/27
- [bug#36404] [PATCH 6/6] doc: Add section for 'guix deploy'., Christopher Lemmer Webber, 2019/06/29
- [bug#36404] [PATCH 6/6] doc: Add section for 'guix deploy'., Jakob L. Kreuze, 2019/06/29
- [bug#36404] [PATCH 5/6] Add 'guix deploy'., Christopher Lemmer Webber, 2019/06/29
- [bug#36404] [PATCH 4/6] Export the (gnu machine) interface., Christopher Lemmer Webber, 2019/06/29
- [bug#36404] [PATCH 4/6] Export the (gnu machine) interface., Ricardo Wurmus, 2019/06/29
- [bug#36404] [PATCH 4/6] Export the (gnu machine) interface., Jakob L. Kreuze, 2019/06/29
[bug#36404] [PATCH 0/6] Add 'guix deploy'., Thompson, David, 2019/06/27