Commit | Line | Data |
---|---|---|
c9384945 | 1 | ;;; GNU Guix --- Functional package management for GNU |
996ed739 | 2 | ;;; Copyright © 2014, 2015 Ludovic Courtès <ludo@gnu.org> |
fbb02045 | 3 | ;;; Copyright © 2015 Joshua S. Grant <jgrant@parenthetical.io> |
c9384945 LC |
4 | ;;; |
5 | ;;; This file is part of GNU Guix. | |
6 | ;;; | |
7 | ;;; GNU Guix is free software; you can redistribute it and/or modify it | |
8 | ;;; under the terms of the GNU General Public License as published by | |
9 | ;;; the Free Software Foundation; either version 3 of the License, or (at | |
10 | ;;; your option) any later version. | |
11 | ;;; | |
12 | ;;; GNU Guix is distributed in the hope that it will be useful, but | |
13 | ;;; WITHOUT ANY WARRANTY; without even the implied warranty of | |
14 | ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
15 | ;;; GNU General Public License for more details. | |
16 | ;;; | |
17 | ;;; You should have received a copy of the GNU General Public License | |
18 | ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>. | |
19 | ||
fbb02045 JG |
20 | (define-module (gnu) |
21 | #:export (use-package-modules | |
22 | use-service-modules | |
23 | use-system-modules)) | |
c9384945 LC |
24 | |
25 | ;;; Commentary: | |
26 | ;;; | |
27 | ;;; This composite module re-exports core parts the (gnu …) public modules. | |
28 | ;;; | |
29 | ;;; Code: | |
30 | ||
31 | (eval-when (eval load compile) | |
32 | (begin | |
33 | (define %public-modules | |
34 | '((gnu system) | |
35 | (gnu system file-systems) | |
36 | (gnu system grub) ; 'grub-configuration' | |
6e828634 | 37 | (gnu system pam) |
c9384945 LC |
38 | (gnu system shadow) ; 'user-account' |
39 | (gnu system linux-initrd) | |
996ed739 | 40 | (gnu system nss) |
c9384945 LC |
41 | (gnu services) |
42 | (gnu services base) | |
43 | (gnu packages) | |
bde7eb8f LC |
44 | (gnu packages base) |
45 | (guix gexp))) ; so gexps can be used | |
c9384945 LC |
46 | |
47 | (for-each (let ((i (module-public-interface (current-module)))) | |
48 | (lambda (m) | |
49 | (module-use! i (resolve-interface m)))) | |
50 | %public-modules))) | |
51 | ||
fbb02045 JG |
52 | (define-syntax-rule (use-package-modules module ...) |
53 | (use-modules (gnu packages module) ...)) | |
54 | ||
55 | (define-syntax-rule (use-service-modules module ...) | |
56 | (use-modules (gnu services module) ...)) | |
57 | ||
58 | (define-syntax-rule (use-system-modules module ...) | |
59 | (use-modules (gnu system module) ...)) | |
60 | ||
c9384945 | 61 | ;;; gnu.scm ends here |