| 1 | ;;; GNU Guix --- Functional package management for GNU |
| 2 | ;;; Copyright © 2014, 2015, 2016 Ludovic Courtès <ludo@gnu.org> |
| 3 | ;;; Copyright © 2015 Joshua S. Grant <jgrant@parenthetical.io> |
| 4 | ;;; Copyright © 2017 Mathieu Othacehe <m.othacehe@gmail.com> |
| 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 | |
| 21 | (define-module (gnu) |
| 22 | #:export (use-package-modules |
| 23 | use-service-modules |
| 24 | use-system-modules)) |
| 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) |
| 36 | (gnu system mapped-devices) |
| 37 | (gnu system file-systems) |
| 38 | (gnu bootloader) |
| 39 | (gnu bootloader grub) |
| 40 | (gnu system pam) |
| 41 | (gnu system shadow) ; 'user-account' |
| 42 | (gnu system linux-initrd) |
| 43 | (gnu system nss) |
| 44 | (gnu services) |
| 45 | (gnu services base) |
| 46 | (gnu packages) |
| 47 | (gnu packages base) |
| 48 | (guix gexp))) ; so gexps can be used |
| 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 | |
| 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 | |
| 64 | ;;; gnu.scm ends here |