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